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

Adding P2P test coverage for targeting common PCL profiles #1606

Merged
merged 2 commits into from
Sep 26, 2017

Conversation

johnbeisner
Copy link
Contributor

Addressing 1/2 for: #1065

[InlineData("netstandard1.1", "Profile111", "v4.5", true, true)]
[InlineData("netstandard1.2", "Profile151", "v4.6", true, true)]
[InlineData("netstandard1.0", "Profile157", "v4.6", true, true)]
[InlineData("netstandard1.0", "Profile259", "v4.5", true, true)]
Copy link
Contributor

Choose a reason for hiding this comment

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

Not sure what the bools are for if they are always true,true.

We should probably also add cases that we expect to fail.

@@ -0,0 +1,115 @@
using Microsoft.NET.TestFramework;
Copy link
Contributor

Choose a reason for hiding this comment

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

Add copyright header matching other files.

@@ -21,10 +21,12 @@ public class TestProject
public string RuntimeFrameworkVersion { get; set; }

public string RuntimeIdentifier { get; set; }

Copy link
Contributor

Choose a reason for hiding this comment

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

nit: unecessary whitespace diff

}

// Skip running test if not running on Windows
// https://github.com/dotnet/sdk/issues/335
Copy link
Contributor

Choose a reason for hiding this comment

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

I would expect these tests wouldn't work on .NET Core msbuild because the deployment doesn't carry the PCL targets.

Copy link
Contributor

Choose a reason for hiding this comment

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

I see now that even core msbuild can build these projects in the test environment because we force a VS Dev command prompt which sets VSINSTALLDIR and core msbuild is "crossing the streams" into VS land to pick up these targets. Since we already require a VS command prompt for building/testing SDK (there's an error from build.cmd otherwise currently), I suppose this is OK.

@johnbeisner johnbeisner merged commit d9955fc into dotnet:master Sep 26, 2017
@johnbeisner johnbeisner deleted the PCL-Tests branch December 12, 2017 18:18
JL03-Yue pushed a commit that referenced this pull request Mar 19, 2024
Bump pinned SDK to 7.0.100-preview.4.22252.9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants