Skip to content

Instantly share code, notes, and snippets.

@ledsun
Created October 15, 2011 18:28
Show Gist options
  • Select an option

  • Save ledsun/1289936 to your computer and use it in GitHub Desktop.

Select an option

Save ledsun/1289936 to your computer and use it in GitHub Desktop.
MsBuildで発行するXMLファイル
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Run" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<ProjectFolder>C:/project/PublishSampleProject/</ProjectFolder>
<OutputFolder>C:/Temp/msbuildTest/</OutputFolder>
</PropertyGroup>
<Target Name="Run">
<CallTarget Targets="Build"/>
<CallTarget Targets="Publish"/>
</Target>
<Target Name="Build">
<MSBuild Projects="$(ProjectFolder)PublishSampleProject.sln"
Properties="Configuration=Release;"/>
</Target>
<Target Name="Publish">
<MSBuild Projects="$(ProjectFolder)PublishSampleProject/PublishSampleProject.vbproj"
Targets="ResolveReferences;_CopyWebApplication"
Properties="Configuration=Release;
WebProjectOutputDir=$(OutputFolder)publish/;
OutDir=$(OutputFolder)build/"/>
</Target>
</Project>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment