Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/monodevelop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Ward <matt.ward@microsoft.com>2019-06-05 16:45:03 +0300
committerMatt Ward <matt.ward@microsoft.com>2019-08-07 11:16:08 +0300
commitc7296d0c6293028796dee9db7e4a8155012a1eaa (patch)
treea8bfa3f4ae66dbe933c59f29a3b19448a562815a /main/tests/test-projects
parent24f5c28f0fcf47c01b0b4218965a86ebe5a07808 (diff)
[Ide] Fix incorrect preprocessor symbols on switching framework
Switching to a different target framework in the text editor would not update the preprocessor symbols available. The problem was that the framework specific values were not being used when creating the Roslyn project. Now a framework specific project configuration is obtained from the project so the correct compiler options and parse options are used by Roslyn.
Diffstat (limited to 'main/tests/test-projects')
-rw-r--r--main/tests/test-projects/multi-target-netframework/multi-target.csproj9
1 files changed, 9 insertions, 0 deletions
diff --git a/main/tests/test-projects/multi-target-netframework/multi-target.csproj b/main/tests/test-projects/multi-target-netframework/multi-target.csproj
index 5382a32895..d4f023a5a5 100644
--- a/main/tests/test-projects/multi-target-netframework/multi-target.csproj
+++ b/main/tests/test-projects/multi-target-netframework/multi-target.csproj
@@ -11,4 +11,13 @@
<ItemGroup Condition="'$(TargetFramework)' == 'netstandard1.0'">
<Compile Remove="MyClass-netframework.cs" />
</ItemGroup>
+
+ <!-- Test framework specific compiler parameters are used -->
+ <PropertyGroup Condition="'$(TargetFramework)' == 'net472'">
+ <NoWarn>NET12345</NoWarn>
+ </PropertyGroup>
+
+ <PropertyGroup Condition="'$(TargetFramework)' == 'netstandard1.0'">
+ <NoWarn>STA4433</NoWarn>
+ </PropertyGroup>
</Project>