提交 5c0b0138 编写于 作者: J Jared Parsons

Suppress VB 40057 at a global level

The warning B40057 used to be suppressed at a global level in PCL /
Desktop projects. The SDK does not suppress this warning and hence
converting to the new SDK caused this to show up.

Previously a number of developers fixed this problem individually. The
correct solution is to suppress it globally as was done previously.
上级 49b09cb3
......@@ -172,6 +172,7 @@
<RemoveIntegerChecks>true</RemoveIntegerChecks>
<RootNamespace></RootNamespace>
<MSBuildTargetsLanguageName>VisualBasic</MSBuildTargetsLanguageName>
<NoWarn>$(NoWarn);40057</NoWarn>
</PropertyGroup>
<ItemGroup>
<Import Include="Microsoft.VisualBasic" />
......
......@@ -9,7 +9,6 @@
<OutputType>Library</OutputType>
<AssemblyName>Microsoft.CodeAnalysis.VisualBasic.CodeStyle</AssemblyName>
<TargetFramework>netstandard1.3</TargetFramework>
<NoWarn>$(NoWarn);40057</NoWarn>
</PropertyGroup>
<ItemGroup Label="Project References">
<ProjectReference Include="..\..\..\Compilers\Core\Portable\CodeAnalysis.csproj">
......@@ -51,4 +50,4 @@
<PublicAPI Include="PublicAPI.Unshipped.txt" />
</ItemGroup>
<Import Project="..\..\..\..\build\Targets\Imports.targets" />
</Project>
\ No newline at end of file
</Project>
......@@ -9,7 +9,6 @@
<OutputType>Library</OutputType>
<AssemblyName>Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes</AssemblyName>
<TargetFramework>netstandard1.3</TargetFramework>
<NoWarn>$(NoWarn);40057</NoWarn>
</PropertyGroup>
<ItemGroup Label="Project References">
<ProjectReference Include="..\..\..\Compilers\Core\Portable\CodeAnalysis.csproj">
......@@ -66,4 +65,4 @@
<PublicAPI Include="PublicAPI.Unshipped.txt" />
</ItemGroup>
<Import Project="..\..\..\..\build\Targets\Imports.targets" />
</Project>
\ No newline at end of file
</Project>
......@@ -11,7 +11,6 @@
<AssemblyName>Microsoft.CodeAnalysis.VisualBasic.CodeStyle.UnitTests</AssemblyName>
<TargetFramework>netstandard1.3</TargetFramework>
<RoslynProjectType>UnitTestPortable</RoslynProjectType>
<NoWarn>$(NoWarn);40057</NoWarn>
</PropertyGroup>
<ItemGroup Label="Project References">
<ProjectReference Include="..\..\..\Compilers\Core\Portable\CodeAnalysis.csproj">
......
......@@ -10,7 +10,7 @@
<AssemblyName>Microsoft.CodeAnalysis.VisualBasic</AssemblyName>
<TargetFramework>netstandard1.3</TargetFramework>
<ServiceablePackage>true</ServiceablePackage>
<NoWarn>$(NoWarn);42014;40057</NoWarn>
<NoWarn>$(NoWarn);42014</NoWarn>
<CodeAnalysisRuleSet>..\BasicCodeAnalysisRules.ruleset</CodeAnalysisRuleSet>
<!-- This is required to prevent downgrade references from CscCore/VbcCode since we must
reference Microsoft.NETCore.App to target the shared framework (bug
......@@ -983,4 +983,4 @@
</ItemGroup>
<Import Project="..\BasicAnalyzerDriver\BasicAnalyzerDriver.projitems" Label="Shared" />
<Import Project="..\..\..\..\build\Targets\Imports.targets" />
</Project>
\ No newline at end of file
</Project>
......@@ -9,7 +9,6 @@
<OutputType>Library</OutputType>
<AssemblyName>Microsoft.CodeAnalysis.VisualBasic.ExpressionEvaluator.ExpressionCompiler</AssemblyName>
<TargetFramework>netstandard1.3</TargetFramework>
<NoWarn>$(NoWarn);40057</NoWarn>
<!-- Package Microsoft.VisualStudio.Debugger.Engine 15.0.26201-gamma is not compatible with netstandard1.3 -->
<PackageTargetFallback>portable-net46</PackageTargetFallback>
<!-- Don't transitively copy output files, since everything builds to the same folder. -->
......@@ -106,4 +105,4 @@
</ItemGroup>
<Import Project="..\..\..\..\..\build\Targets\Vsdconfig.targets" />
<Import Project="..\..\..\..\..\build\Targets\Imports.targets" />
</Project>
\ No newline at end of file
</Project>
......@@ -12,7 +12,6 @@
<OutputType>Library</OutputType>
<AssemblyName>Microsoft.CodeAnalysis.VisualBasic.ExpressionEvaluator.ResultProvider</AssemblyName>
<TargetFramework>net20</TargetFramework>
<NoWarn>$(NoWarn);40057</NoWarn>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|AnyCPU'" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|AnyCPU'" />
......
......@@ -12,7 +12,6 @@
<!-- Package Microsoft.VisualStudio.Debugger.Engine 15.0.26201-gamma is not compatible with netstandard1.3 -->
<PackageTargetFallback>portable-net45+win8</PackageTargetFallback>
<DisableImplicitFrameworkReferences>false</DisableImplicitFrameworkReferences>
<NoWarn>$(NoWarn);40057</NoWarn>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|AnyCPU'" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|AnyCPU'" />
......@@ -49,4 +48,4 @@
<Import Project="..\BasicResultProvider.projitems" Label="Shared" />
<Import Project="..\..\..\..\..\..\build\Targets\Vsdconfig.targets" />
<Import Project="..\..\..\..\..\..\build\Targets\Imports.targets" />
</Project>
\ No newline at end of file
</Project>
......@@ -9,7 +9,6 @@
<OutputType>Library</OutputType>
<AssemblyName>Microsoft.CodeAnalysis.VisualBasic.Features</AssemblyName>
<TargetFramework>netstandard1.3</TargetFramework>
<NoWarn>$(NoWarn);40057</NoWarn>
</PropertyGroup>
<ItemGroup Label="Project References">
<ProjectReference Include="..\..\..\Compilers\Core\Portable\CodeAnalysis.csproj">
......@@ -469,4 +468,4 @@
</ItemGroup>
<Import Project="..\..\..\Compilers\VisualBasic\BasicAnalyzerDriver\BasicAnalyzerDriver.projitems" Label="Shared" />
<Import Project="..\..\..\..\build\Targets\Imports.targets" />
</Project>
\ No newline at end of file
</Project>
......@@ -15,7 +15,6 @@
<TargetFramework>netcoreapp1.1</TargetFramework>
<RuntimeIdentifiers>win7-x64;ubuntu.14.04-x64;ubuntu.16.04-x64;osx.10.12-x64</RuntimeIdentifiers>
<NoStdLib>true</NoStdLib>
<NoWarn>$(NoWarn);40057</NoWarn>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x64'" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x64'" />
......@@ -99,4 +98,4 @@
<PackageReference Include="System.Xml.XPath.XDocument" Version="$(SystemXmlXPathXDocumentVersion)" />
</ItemGroup>
<Import Project="..\..\..\build\Targets\Imports.targets" />
</Project>
\ No newline at end of file
</Project>
......@@ -13,7 +13,7 @@
<TargetFramework>netstandard1.3</TargetFramework>
<GeneratePkgDefFile>false</GeneratePkgDefFile>
<OptionStrict>Off</OptionStrict>
<NoWarn>$(NoWarn);41999,42016,42017,42018,42019,42020,42021,42022,42032,42036;40057</NoWarn>
<NoWarn>$(NoWarn);41999,42016,42017,42018,42019,42020,42021,42022,42032,42036</NoWarn>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|AnyCPU'" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|AnyCPU'" />
......@@ -107,4 +107,4 @@
</Exec>
</Target>
<Import Project="..\..\..\..\..\..\build\Targets\Imports.targets" />
</Project>
\ No newline at end of file
</Project>
......@@ -9,7 +9,6 @@
<OutputType>Library</OutputType>
<AssemblyName>Microsoft.CodeAnalysis.VisualBasic.Scripting</AssemblyName>
<TargetFramework>netstandard1.3</TargetFramework>
<NoWarn>$(NoWarn);40057</NoWarn>
</PropertyGroup>
<ItemGroup Label="Project References">
<ProjectReference Include="..\..\Compilers\Core\Portable\CodeAnalysis.csproj">
......@@ -71,4 +70,4 @@
<PackageReference Include="Microsoft.VisualBasic" Version="$(MicrosoftVisualBasicVersion)" />
</ItemGroup>
<Import Project="..\..\..\build\Targets\Imports.targets" />
</Project>
\ No newline at end of file
</Project>
......@@ -11,7 +11,6 @@
<AssemblyName>Microsoft.CodeAnalysis.VisualBasic.Scripting.UnitTests</AssemblyName>
<TargetFramework>netstandard1.3</TargetFramework>
<RoslynProjectType>UnitTestDesktop</RoslynProjectType>
<NoWarn>$(NoWarn);40057</NoWarn>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|AnyCPU'" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|AnyCPU'" />
......@@ -71,4 +70,4 @@
<Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" />
</ItemGroup>
<Import Project="..\..\..\build\Targets\Imports.targets" />
</Project>
\ No newline at end of file
</Project>
......@@ -16,7 +16,6 @@
<TargetFramework>netcoreapp1.1</TargetFramework>
<RuntimeIdentifiers>win7-x64;ubuntu.14.04-x64;ubuntu.16.04-x64;osx.10.12-x64</RuntimeIdentifiers>
<NonShipping>true</NonShipping>
<NoWarn>$(NoWarn);40057</NoWarn>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x64'" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x64'" />
......@@ -31,4 +30,4 @@
<PackageReference Include="NETStandard.Library" Version="$(NETStandardLibraryVersion)" />
</ItemGroup>
<Import Project="..\..\..\..\..\..\build\Targets\Imports.targets" />
</Project>
\ No newline at end of file
</Project>
......@@ -17,7 +17,6 @@
<TargetFramework>netcoreapp1.1</TargetFramework>
<RuntimeIdentifiers>win7-x64;ubuntu.14.04-x64;ubuntu.16.04-x64;osx.10.12-x64</RuntimeIdentifiers>
<NonShipping>true</NonShipping>
<NoWarn>$(NoWarn);40057</NoWarn>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x64'" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x64'" />
......@@ -61,4 +60,4 @@
<PackageReference Include="System.Security.Cryptography.Algorithms" Version="$(SystemSecurityCryptographyAlgorithmsVersion)" />
</ItemGroup>
<Import Project="..\..\..\..\..\..\build\Targets\Imports.targets" />
</Project>
\ No newline at end of file
</Project>
......@@ -10,7 +10,6 @@
<AssemblyName>Microsoft.CodeAnalysis.VisualBasic.Workspaces</AssemblyName>
<TargetFramework>netstandard1.3</TargetFramework>
<ServiceablePackage>true</ServiceablePackage>
<NoWarn>$(NoWarn);40057</NoWarn>
</PropertyGroup>
<ItemGroup Label="Project References">
<ProjectReference Include="..\..\..\Compilers\Core\Portable\CodeAnalysis.csproj">
......@@ -269,4 +268,4 @@
<Compile Include="Diagnostics\VisualBasicDiagnosticPropertiesService.vb" />
</ItemGroup>
<Import Project="..\..\..\..\build\Targets\Imports.targets" />
</Project>
\ No newline at end of file
</Project>
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册