Skip to content
This repository was archived by the owner on Dec 14, 2018. It is now read-only.

Re-enable functional tests on full .NET Framework #5877

Merged
merged 1 commit into from
Mar 2, 2017

Conversation

dougbu
Copy link
Contributor

@dougbu dougbu commented Mar 2, 2017

- #5873
- creating an EXE for the test project seems to work around #5873
  - also avoids dotnet/sdk#926 when building in Visual Studio

nit: clean up duplicate test data
@dougbu
Copy link
Contributor Author

dougbu commented Mar 2, 2017

FYI I went back and forth between trying to create a minimal repro and looking for a workaround. Found the workaround first.

@dougbu
Copy link
Contributor Author

dougbu commented Mar 2, 2017

/cc @davidfowl @natemcmaster @pranavkm

Copy link
Contributor

@pranavkm pranavkm left a comment

Choose a reason for hiding this comment

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

As long as it works 👍

<PackageTargetFallback>$(PackageTargetFallback);portable-net451+win8</PackageTargetFallback>
<TargetFrameworks>netcoreapp1.1;net452</TargetFrameworks>
<TargetFrameworks Condition="'$(OS)' != 'Windows_NT'">netcoreapp1.1</TargetFrameworks>
<PackageTargetFallback Condition=" '$(TargetFramework)' == 'netcoreapp1.1' ">$(PackageTargetFallback);portable-net451+win8</PackageTargetFallback>
Copy link
Contributor

Choose a reason for hiding this comment

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

"'$(OS)' != 'Windows_NT'" versus " '$(TargetFramework)' == 'netcoreapp1.1' ". We should pick one spacing

Copy link
Contributor Author

Choose a reason for hiding this comment

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

🙈 I find conditions easier to read with more spaces. But, no need for an engineering guideline / principle / law here. As long as people aren't adding or removing spaces in otherwise-untouched code, author's discretion to the max.

Generate an EXE to take advantage of Microsoft.NET.RuntimeIdentifierInference.targets special cases. This works
around #5873. Also avoids dotnet/sdk#926 when building with msbuild.exe e.g. in Visual Studio.
-->
<OutputType Condition=" '$(TargetFramework)' != 'netcoreapp1.1' ">EXE</OutputType>
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we need to file an SDK bug for this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We need a bug somewhere. I need to minimize my repro project first though.

@dougbu dougbu merged commit 9b3b3e9 into dev Mar 2, 2017
@dougbu
Copy link
Contributor Author

dougbu commented Mar 2, 2017

9b3b3e9

@dougbu dougbu deleted the dougbu/functionaltests.exe.5873 branch March 2, 2017 17:00
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants