Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable new MSBuild GenerateSupportedRuntime functionality, which breaks framework targetting #587

Merged
merged 1 commit into from
Mar 24, 2019

Conversation

ChrisMaddock
Copy link
Member

@ChrisMaddock ChrisMaddock commented Mar 24, 2019

There was a recent change to MSBuild (dotnet/sdk#2447) which had the effect of preventing the NUnit console from running any .NET 4.0+ test assemblies.

The MSBuild change automatically inserted supportedRuntime tags into the app.config, when there were none. This overrode the complus_version environment variable, which the console uses to ensure that the agent process is launched on the correct .NET Framework version to run each test assembly.

The new MSBuild functionality (GenerateSupportedRuntimes) caused the agent to always launch under .NET 2.0. This prevented the NUnit running any assemblies above .NET 4.0. Adding these two lines to the agent csproj's prevents this behaviour from taking place, which is currently required if we wish to continue targeting specific .NET Framework versions through complus_version. (The real solution may be to stop doing that undocumented solution however - I'm not sure what other solutions there are)

dotnet/sdk bug report also incoming, will link back

@ChrisMaddock
Copy link
Member Author

SDK bug report here: dotnet/sdk#3036

Azure build failed on restoring the Linux NuGet packages...rerunning...

Copy link
Member

@rprouse rprouse left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great find. Weird that it isn't happening for me, but...

@rprouse rprouse merged commit b0408ff into master Mar 24, 2019
@rprouse rprouse deleted the suppRuntime branch March 24, 2019 17:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants