Skip to content

Conversation

@pjcollins
Copy link
Member

As part of supporting .NET 6 projects with our .NET 7 workload, we will
want to be able to insert both .NET 6 and .NET 7 workload packs into VS.

Historically, we have replaced the VS manifest file every time we
update our workload. For .NET 7 we will likely want two VS manifests
side by side, one which contains our .NET 6 packs and one for .NET 7.

Add a version to the .NET VS manifest file to support this potential
side by side scenario.

As part of supporting .NET 6 projects with our .NET 7 workload, we will
want to be able to insert both .NET 6 and .NET 7 workload packs into VS.

Historically, we have replaced the [VS manifest file][0] every time we
update our workload.  For .NET 7 we will likely want two VS manifests
side by side, one which contains our .NET 6 packs and one for .NET 7.

Add a version to the .NET VS manifest file to support this potential
side by side scenario.

[0]: https://devdiv.visualstudio.com/DevDiv/_git/VS?path=/.corext/Configs/dotnet-workloads-components.json&version=GBmain&line=10&lineEnd=11&lineStartColumn=1&lineEndColumn=1&lineStyle=plain&_a=contents
@pjcollins pjcollins requested a review from jonpryor as a code owner June 2, 2022 16:04
@pjcollins pjcollins requested a review from jonathanpeppers June 2, 2022 16:04
<Project>
<PropertyGroup>
<TargetName>Microsoft.NET.Sdk.Android.Workload</TargetName>
<TargetName>Microsoft.NET.Sdk.Android.Workload.@VSMAN_VERSION@</TargetName>
Copy link
Member

Choose a reason for hiding this comment

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

So this would be Microsoft.NET.Sdk.Android.Workload.7.0?

https://github.com/xamarin/xamarin-android/blob/e52c131543580641a8884866af2e6aa1e1e02898/Directory.Build.props#L4

That's probably fine, but do we need the .0? If this would never be seen by a customer, probably doesn't matter.

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah I figured most repos would have this 7.0 version and it would avoid any extra trimming efforts, we could maybe change it to Microsoft.NET.Sdk.Android.Workload.net7.0 alternatively.

Copy link
Contributor

Choose a reason for hiding this comment

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

I like net7.0 as a suffix.

Copy link
Member Author

Choose a reason for hiding this comment

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

Agreed, it makes the 7.0 less arbitrary.

@pjcollins pjcollins merged commit bd5d396 into dotnet:main Jun 3, 2022
@pjcollins pjcollins deleted the vers-vsman branch June 3, 2022 16:03
@github-actions github-actions bot locked and limited conversation to collaborators Jan 24, 2024
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.

3 participants