提交 c104c68d 编写于 作者: J Jared Parsons

Moved checking for over / under flow properties to BuildBoss

上级 1bd9cad9
......@@ -119,7 +119,6 @@
<!-- While UseCommonOutputDirectory will prevent NuGet implementations from being copied,
we still need to turn off CopyNuGetImplementations to prevent the build task from complaining about a
lack of a runtime section in our project.json. -->
<CopyNuGetImplementations Condition="'$(UseCommonOutputDirectory)' == 'true'">false</CopyNuGetImplementations>
</PropertyGroup>
......@@ -287,25 +286,6 @@
<FinalDefineConstants>$(FinalDefineConstants.Replace('"', ''))</FinalDefineConstants>
</PropertyGroup>
<!-- Verify some build flags are correct -->
<PropertyGroup>
<PrepareForBuildDependsOn>$(PrepareForBuildDependsOn);VerifyBuildFlags</PrepareForBuildDependsOn>
</PropertyGroup>
<Target Name="VerifyBuildFlags">
<Error
Condition="'$(CheckForOverflowUnderflow)' != '' OR '$(RemoveIntegerChecks)' != ''"
Text="The following properties cannot be set by individual projects: CheckForOverflowUnderflow and RemoveIntegerChecks" />
<PropertyGroup Condition="'$(ProjectLanguage)' == 'CSharp'">
<CheckForOverflowUnderflow>false</CheckForOverflowUnderflow>
</PropertyGroup>
<PropertyGroup Condition="'$(ProjectLanguage)' == 'VB'">
<RemoveIntegerChecks>true</RemoveIntegerChecks>
</PropertyGroup>
</Target>
<!-- For our projects that specify multiple targets in the project.json to work around https://github.com/dotnet/roslyn/issues/12458,
we need to also silence a NuGet generated warning -->
<Target Name="EmitMSBuildWarning"></Target>
......
......@@ -114,6 +114,7 @@
<OptionStrict>On</OptionStrict>
<RootNamespace></RootNamespace>
<VBRuntime>Embed</VBRuntime>
<RemoveIntegerChecks>true</RemoveIntegerChecks>
</PropertyGroup>
<ItemGroup>
<Import Include="Microsoft.VisualBasic" />
......@@ -153,6 +154,7 @@
thorough documentation story
-->
<NoWarn>$(NoWarn);1591</NoWarn>
<CheckForOverflowUnderflow>false</CheckForOverflowUnderflow>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)' == 'Debug'">
<DebugSymbols>true</DebugSymbols>
......@@ -262,4 +264,4 @@
SourceFiles="@(IntermediateAssembly -> '%(fullpath).key')"
DestinationFolder="$(OutDir)" />
</Target>
</Project>
</Project>
......@@ -39,7 +39,6 @@
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x64'">
<DebugSymbols>true</DebugSymbols>
<OutDir>..\..\..\..\Binaries\Debug\amd64</OutDir>
<CheckForOverflowUnderflow>true</CheckForOverflowUnderflow>
<PlatformTarget>x64</PlatformTarget>
<ErrorReport>prompt</ErrorReport>
<CodeAnalysisRuleSet>..\CSharpCodeAnalysisRules.ruleset</CodeAnalysisRuleSet>
......@@ -892,4 +891,4 @@
</ItemGroup>
<Import Project="..\CSharpAnalyzerDriver\CSharpAnalyzerDriver.projitems" Label="Shared" />
<Import Project="..\..\..\..\build\Targets\Imports.targets" />
</Project>
\ No newline at end of file
</Project>
......@@ -55,7 +55,6 @@
<DebugSymbols>true</DebugSymbols>
<OutDir>..\..\..\..\Binaries\Debug\amd64</OutDir>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<CheckForOverflowUnderflow>true</CheckForOverflowUnderflow>
<PlatformTarget>x64</PlatformTarget>
<ErrorReport>prompt</ErrorReport>
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
......@@ -88,4 +87,4 @@
</ItemGroup>
<Import Project="..\..\..\..\build\Targets\Imports.targets" />
<Import Project="..\..\..\..\build\Targets\Roslyn.Toolsets.Xunit.targets" />
</Project>
\ No newline at end of file
</Project>
......@@ -23,7 +23,6 @@
<DebugSymbols>true</DebugSymbols>
<OutDir>..\..\..\..\Binaries\Debug\amd64</OutDir>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<CheckForOverflowUnderflow>true</CheckForOverflowUnderflow>
<PlatformTarget>x64</PlatformTarget>
<ErrorReport>prompt</ErrorReport>
</PropertyGroup>
......@@ -813,4 +812,4 @@
<Import Project="..\..\..\Dependencies\CodeAnalysis.Metadata\Microsoft.CodeAnalysis.Metadata.projitems" Label="Shared" />
<Import Project="..\..\..\Dependencies\PooledObjects\Microsoft.CodeAnalysis.PooledObjects.projitems" Label="Shared" />
<Import Project="..\..\..\..\build\Targets\Imports.targets" />
</Project>
\ No newline at end of file
</Project>
......@@ -66,7 +66,6 @@
<DebugSymbols>true</DebugSymbols>
<OutDir>..\..\..\..\Binaries\Debug\amd64</OutDir>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<CheckForOverflowUnderflow>true</CheckForOverflowUnderflow>
<PlatformTarget>x64</PlatformTarget>
<ErrorReport>prompt</ErrorReport>
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
......@@ -109,4 +108,4 @@
</ItemGroup>
<Import Project="..\..\..\..\build\Targets\Imports.targets" />
<Import Project="..\..\..\..\build\Targets\Roslyn.Toolsets.Xunit.targets" />
</Project>
\ No newline at end of file
</Project>
......@@ -34,7 +34,6 @@
<DebugSymbols>true</DebugSymbols>
<OutDir>..\..\..\Binaries\Debug\amd64</OutDir>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<CheckForOverflowUnderflow>true</CheckForOverflowUnderflow>
<PlatformTarget>x64</PlatformTarget>
<ErrorReport>prompt</ErrorReport>
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
......@@ -82,4 +81,4 @@
<Import Project="..\..\Dependencies\PooledObjects\Microsoft.CodeAnalysis.PooledObjects.projitems" Label="Shared" />
<Import Project="..\..\Dependencies\CodeAnalysis.Metadata\Microsoft.CodeAnalysis.Metadata.projitems" Label="Shared" />
<Import Project="..\..\..\build\Targets\Imports.targets" />
</Project>
\ No newline at end of file
</Project>
......@@ -60,7 +60,6 @@
<DebugSymbols>true</DebugSymbols>
<OutDir>..\..\..\..\Binaries\Debug\amd64</OutDir>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<CheckForOverflowUnderflow>true</CheckForOverflowUnderflow>
<PlatformTarget>x64</PlatformTarget>
<ErrorReport>prompt</ErrorReport>
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
......@@ -168,4 +167,4 @@
<Import Project="..\Shared\TestUtilities.projitems" Label="Shared" />
<Import Project="..\..\..\..\build\Targets\Imports.targets" />
<Import Project="..\..\..\..\build\Targets\Roslyn.Toolsets.Xunit.targets" />
</Project>
\ No newline at end of file
</Project>
......@@ -51,7 +51,6 @@
<DebugSymbols>true</DebugSymbols>
<OutDir>..\..\..\..\Binaries\Debug\amd64</OutDir>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<CheckForOverflowUnderflow>true</CheckForOverflowUnderflow>
<PlatformTarget>x64</PlatformTarget>
<ErrorReport>prompt</ErrorReport>
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
......@@ -114,4 +113,4 @@
</ItemGroup>
<Import Project="..\..\..\..\build\Targets\Imports.targets" />
<Import Project="..\..\..\..\build\Targets\Roslyn.Toolsets.Xunit.targets" />
</Project>
\ No newline at end of file
</Project>
......@@ -40,6 +40,8 @@ internal bool CheckAll(TextWriter textWriter)
allGood &= CheckForProperty(textWriter, "OldToolsVersion");
allGood &= CheckForProperty(textWriter, "SchemaVersion");
allGood &= CheckForProperty(textWriter, "Configuration");
allGood &= CheckForProperty(textWriter, "CheckForOverflowUnderflow");
allGood &= CheckForProperty(textWriter, "RemoveIntegerChecks");
allGood &= CheckRoslynProjectType(textWriter);
allGood &= CheckProjectReferences(textWriter);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册