Guest User

Untitled

a guest
Jun 22nd, 2018
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.85 KB | None | 0 0
  1. aspnet_compiler -nologo -v / -p "C:WebSite1" -u "C:TargetPath"
  2.  
  3. <Target Name="PublishToIIS" DependsOnTargets="Publish">
  4. <AspNetCompiler
  5. VirtualPath="$(IISVirtualPath)"
  6. TargetPath="$(IISTargetPath)"
  7. PhysicalPath="$(MSBuildProjectDirectory)/trunk/InternalAppCS/Web.UI/"
  8. Force="true"
  9. Debug="$(IISDebug)"
  10. />
  11.  
  12. </Target>
  13.  
  14. /property:"OutDir=c:temptaweb;WebProjectOutputDir=c:temptaweb"
  15.  
  16. <Target Name="AfterBuild">
  17. <Message Text="Copying to Deployment Dir:" />
  18. <Copy SourceFiles="@(Content)" DestinationFolder="..PreCompiledWeb%(Content.RelativeDir)" />
  19. <CreateItem Include="$(OutputPath)*">
  20. <Output TaskParameter="Include" ItemName="Binaries"/>
  21. </CreateItem>
  22. <Copy SourceFiles="@(Binaries)" DestinationFolder="..PreCompiledWebbin" />
  23.  
  24. msbuild /t:Build
  25.  
  26. xcopy "..PreCompiledWeb*.*" "C:MySite" /e
  27.  
  28. Set WshShell = CreateObject("WScript.Shell")
  29. sCmd1 = """C:Program FilesWinSCPwinscp.com"" <myusername> /command ""option batch on"" ""option confirm off"" ""put " & DefaultPath & strResult & "" & DefaultFileName & " /Usr/<myuser>/" & updateType & "/" & strResult & "/"" ""exit"""
  30.  
  31. C:WINDOWSMicrosoft.NETFrameworkv2.0.50727aspnet_compiler -p "D:<mycompany>BackedupWeb Sites<mysiteRoot" -v /
  32.  
  33. $build = "$env:windirMicrosoft.NETFrameworkv3.5MSBuild.exe"
  34.  
  35. $SolutionPath = "C:ProjectsAdminWebSite"
  36. $SolutionFile = "AdminWebSite.sln"
  37. $WebProjectFile = "Admin.WebAdmin.Web.csproj"
  38. $OutputPath = "C:PublishedSitesHostsadminweb"
  39.  
  40. & $build "$SolutionPath$SolutionFile" /t:rebuild
  41. & $build "$SolutionPath$WebProjectFile" "/t:ResolveReferences;_CopyWebApplication;publish" /p:OutDir="$OutputPathbin" /p:WebProjectOutputDir="$OutputPath"
  42.  
  43. msbuild "/t:_CopyWebApplication;ResolveReferences;publish" /p:OutDir="C:inetpubwwwroot[appname]bin" /p:WebProjectOutputDir="C:inetpubwwwroot[appname]" c:directory[appname].csproj
Add Comment
Please, Sign In to add comment