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

React to MSBuild Traversal and NoTargets SDK updates #52895

Merged
merged 15 commits into from May 20, 2021
Merged

Conversation

ViktorHofer
Copy link
Member

@ViktorHofer ViktorHofer commented May 18, 2021

  1. The rebuild target was added into the Traversal SDK here: microsoft/MSBuildSdks@fd7660d#diff-ad560c0828c6bab536a01e43bb052bfce14a959b8df2c3f89cccfca0b399681c
  2. Updating both SDKs to the latest version
  3. Making sure that NoTargets project always use $(NetCoreAppToolCurrent) as the tfm, except for projects which package or participate in the traversal TargetFramework.Sdk filtering.

@msftbot
Copy link
Contributor

@msftbot msftbot bot commented May 18, 2021

Tagging subscribers to this area: @dotnet/runtime-infrastructure
See info in area-owners.md if you want to be subscribed.

Issue Details

The rebuild target was added into the Traversal SDK here: microsoft/MSBuildSdks@fd7660d#diff-ad560c0828c6bab536a01e43bb052bfce14a959b8df2c3f89cccfca0b399681c

Author: ViktorHofer
Assignees: ViktorHofer
Labels:

area-Infrastructure

Milestone: -

@msftbot msftbot bot added this to In Progress in Infrastructure Backlog May 18, 2021
@ViktorHofer ViktorHofer changed the title Remove custom rebuild entry point in Build.proj React to MSBuild Traversal and NoTargets SDK updates May 18, 2021
eng/NoTargetsSdk.AfterProps.props Outdated Show resolved Hide resolved
@@ -10,6 +11,6 @@
</PropertyGroup>

<ItemGroup>
<Content Include="*.cs" PackagePath="contentFiles/cs/netstandard1.0/%(FileName)%(Extension)" />
<Content Include="*.cs" PackagePath="contentFiles/cs/netstandard1.0/%(FileName)%(Extension)" BuildAction="Compile" />
Copy link
Member Author

@ViktorHofer ViktorHofer May 18, 2021

Choose a reason for hiding this comment

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

@Anipik I checked the generated package's nuspec and before this change there were two items added as following:

  • one content item for netstandard1.0 without a compile build action
  • one compile item added for netstandard2.0

I assume that the content item was unintentional? The package wouldn't have worked and participated in the user's build for netstandard1.x targets. That said, I plan to trim assets from our packages which includes netstandard1.x assets so this might go away entirely.

Copy link
Contributor

@Anipik Anipik May 19, 2021

Choose a reason for hiding this comment

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

I assume that the content item was unintentional?

thats unintentinal

@ViktorHofer
Copy link
Member Author

@ViktorHofer ViktorHofer commented May 19, 2021

The PR is ready for review, PTAL.

Copy link
Member

@ericstj ericstj left a comment

Looks OK to me, but I'd want @Anipik to have a look too.

Anipik
Anipik approved these changes May 19, 2021
@ViktorHofer ViktorHofer merged commit 0d27b09 into main May 20, 2021
167 of 169 checks passed
Infrastructure Backlog automation moved this from In Progress to Done May 20, 2021
@karelz karelz added this to the 6.0.0 milestone May 20, 2021
@jkotas jkotas deleted the ViktorHofer-patch-1 branch May 21, 2021
@msftbot msftbot bot locked as resolved and limited conversation to collaborators Jun 20, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

4 participants