Skip to content

Mark P2P-protocol targets as optional - #2923

Merged
rainersigwald merged 3 commits into
dotnet:masterfrom
rainersigwald:optional-projectreference-protocol-calls
Feb 2, 2018
Merged

rainersigwald merged 3 commits into
dotnet:masterfrom
rainersigwald:optional-projectreference-protocol-calls

Conversation

@rainersigwald

Copy link
Copy Markdown
Member

Closes #2877 and fixes #2922 by ensuring that projects that do not
define GetNativeManifest and GetNativeManifest targets (such as the
"outer" build of a multitargeting SDK project) are referencable with
ReferenceOutputAssembly=false (or other means of avoiding the
TargetFramework-compatibility check).

Includes updates to the ProjectReference Protocol documentation.

Closes dotnet#2877 and fixes dotnet#2922 by ensuring that projects that do not
define `GetNativeManifest` and `GetNativeManifest` targets (such as the
"outer" build of a multitargeting SDK project) are referencable with
`ReferenceOutputAssembly=false` (or other means of avoiding the
TargetFramework-compatibility check).

Includes updates to the ProjectReference Protocol documentation.
@rainersigwald

Copy link
Copy Markdown
Member Author

Got confirmation that this fixes the issue in the reporting real-world project.

@natemcmaster

Copy link
Copy Markdown
Contributor

Is this going to make it into the 2.1.0 preview1 SDK for .NET Core? We just hit this when building aspnetcore with the latest .net core sdk

@rainersigwald

Copy link
Copy Markdown
Member Author

@natemcmaster I'm not sure what approvals we'll need but I'll try.

@natemcmaster

Copy link
Copy Markdown
Contributor

@livarcocc might know

@livarcocc

Copy link
Copy Markdown
Contributor

The insertion will require an approval from @MattGertz. We have an ask mode template that will need to be filled up. For instance, this PR has the template filled up for us: dotnet/cli#7137.

@rainersigwald

Copy link
Copy Markdown
Member Author

Actually @natemcmaster I'm starting to worry; if this broke you we probably can't go forward with the fix for the bug that caused this regression in the first place. Can you point me at the parts of ASP.NET Core that broke?

@rainersigwald

Copy link
Copy Markdown
Member Author

After looking at those examples, this won't fix the regression caused by #2867. It resolve the GetNativeManifest error, but then https://github.com/aspnet/Razor/blob/82247fbb097d34d310fc7220d4535486986cb4a7/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test.csproj#L33-L38 and some other examples would fail, because they depend on having nearest-TF resolution done even when ReferenceOutputAssembly=false.

We should still do this but since it doesn't fix a regression I'm going to move it into 15.7 rather than 15.6.

I'll submit a new PR to back out the change that caused the regression entirely.

@rainersigwald

Copy link
Copy Markdown
Member Author

I'm so confused; the link to the macOS job says it passed.

@dotnet-bot test OSX10.13 Build for CoreCLR please

@rainersigwald
rainersigwald merged commit c89986f into dotnet:master Feb 2, 2018
@rainersigwald
rainersigwald deleted the optional-projectreference-protocol-calls branch February 2, 2018 20:10
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.

Error on GetNativeManifest when P2P to a multitargeting project with ReferenceOutputAssembly=false Mark optional calls in the P2P protocol as such

6 participants