提交 413031ab 编写于 作者: J Jared Parsons

Merge pull request #1363 from jaredpar/bootstrap-build

Enable bootstrap builds
......@@ -7,7 +7,7 @@
*.sln.docstates
# Build results
[Bb]inaries/
[Dd]ebug/
[Rr]elease/
x64/
......
......@@ -58,17 +58,27 @@
<RoslynDiagnosticsPropsFilePath>$(NuGetPackagesPath)\Microsoft.Net.RoslynDiagnostics.1.0.0-rc2-20150313-01\build\Microsoft.Net.RoslynDiagnostics.props</RoslynDiagnosticsPropsFilePath>
<AdditionalFileItemNames>$(AdditionalFileItemNames);PublicAPI</AdditionalFileItemNames>
</PropertyGroup>
<ImportGroup Label="GlobalNuGets">
<!-- Import the props files from the toolset NuGet packages if we're not in a bootstrap build -->
<ImportGroup Label="GlobalNuGets" Condition="'$(BootstrapBuildPath)' == ''">
<Import Project="$(ToolsetCompilerPropsFilePath)"
Condition="Exists('$(ToolsetCompilerPropsFilePath)')" />
<Import Project="$(RoslynDiagnosticsPropsFilePath)"
Condition="Exists('$(RoslynDiagnosticsPropsFilePath)') And ('$(UseRoslynAnalyzers)' == 'true')" />
</ImportGroup>
<Target Name="EnsureGlobalNuGets">
<Target Name="EnsureGlobalNuGets" Condition="'$(BootstrapBuildPath)' == ''">
<Error Condition="!$(CscToolPath.Contains('$(ToolsetCompilerPackageName)'))"
Text="This project requires the $(ToolsetCompilerPackageName) NuGet package to build. Use NuGet Package Restore to download the required files (&quot;powershell .nuget\NuGetRestore.ps1&quot;). The missing file is &quot;$(ToolsetCompilerPropsFilePath)&quot;." />
</Target>
<PropertyGroup Condition="'$(BootstrapBuildPath)' != ''">
<CscToolPath>$(BootstrapBuildPath)</CscToolPath>
<CscToolExe>csc.exe</CscToolExe>
<VbcToolPath>$(BootstrapBuildPath)</VbcToolPath>
<VbcToolExe>vbc.exe</VbcToolExe>
</PropertyGroup>
<!-- Common project settings -->
<PropertyGroup>
<DeployToSamplesSubfolder Condition="'$(DeployToSamplesSubfolder)' == ''">false</DeployToSamplesSubfolder>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册