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

Hope that the future can in Nuget package management page through the UI update Microsoft.Windows.SDK.NET.Ref package #1786

Open
Gaoyifei1011 opened this issue Sep 11, 2024 · 5 comments
Labels
bug Something isn't working

Comments

@Gaoyifei1011
Copy link
Contributor

Describe the bug

Hope that the future can in Nuget package management page through the UI update Microsoft.Windows.SDK.NET.Ref package
希望未来能在 Nuget 包管理页面中通过 UI 更新 Microsoft.Windows.SDK.NET.Ref 包

After updating to CsWinRT 2.1.X, we found that the Microsoft.Windows.SDK.NET.Ref framework package will also be updated with the version of CsWinRT, however if we want to know the latest version of Microsoft.Windows.SDK.NET.Ref, we need to manually search and modify the 10.0.26100.45 property value, which is no longer very convenient. I hope that the CsWinRT team can communicate with the Visual Studio team, and you can add a separate display of the content of the framework package on the Nuget package management page, and you can follow the ordinary Nuget package to update it on the Nuget package management page
在更新到 CsWinRT 2.1.X 后,我们发现Microsoft.Windows.SDK.NET.Ref 框架包也会随着 CsWinRT 的版本进行更新,然而如果我们想了解 Microsoft.Windows.SDK.NET.Ref 的最新版本,需要手动搜索并修改 csproj 下的 10.0.26100.45 属性值,这已操作不太方便。希望 CsWinRT 团队能和 Visual Studio 团队能沟通一下,可以在 Nuget 包的管理页面添加一个单独显示框架包的内容,可以跟随普通的 Nuget 包在 Nuget 包管理页面进行更新

To Reproduce

{EBF3DAA8-6081-4C4A-BCC9-C563AB6A4468}
{F171FB57-9F50-4924-8FE6-B8148E97BB46}
{50741803-8602-4BB5-A92F-7CF40B256985}

Expected behavior

Can add a separate display of the content of the framework package on the Nuget package management page, and you can follow the ordinary Nuget package to update it on the Nuget package management page
可以在 Nuget 包的管理页面添加一个单独显示框架包的内容,可以跟随普通的 Nuget 包在 Nuget 包管理页面进行更新

Version Info

CsWinRT 2.1.3
.NET 9 Preview 7
Windows SDK 10.0.26100.45
Visual Studio 17.11.3

Additional context

None

@Gaoyifei1011 Gaoyifei1011 added the bug Something isn't working label Sep 11, 2024
@dongle-the-gadget
Copy link
Contributor

This is a .NET limitation, since you cannot directly reference a .NET SDK.

@Gaoyifei1011
Copy link
Contributor Author

This is a .NET limitation, since you cannot directly reference a .NET SDK.

Thanks for the reminder, I've already raised this issue under the dotnet runtime. dotnet/sdk#43335
感谢提醒,我已经在 dotnet runtime 下提出这个问题了。dotnet/sdk#43335

@manodasanW
Copy link
Member

Typically, the hope is you do not need to manually set WindowsSdkPackageVersion or worry about incrementing the version for it as it would automatically get updated via updates to the .NET SDK. But there are occasions like right now where there is a time period until the .NET SDK version comes out where it might need to be set. We will need to see how we can improve the experience when situations like these happens.

@Gaoyifei1011
Copy link
Contributor Author

Typically, the hope is you do not need to manually set WindowsSdkPackageVersion or worry about incrementing the version for it as it would automatically get updated via updates to the .NET SDK. But there are occasions like right now where there is a time period until the .NET SDK version comes out where it might need to be set. We will need to see how we can improve the experience when situations like these happens.

At present, I see that every time a new version of CsWinRT is released, the Windows SDK version will also be updated, and before CsWinRT supported AOT, the Windows SDK version was updated less frequently. So in future releases, will the Windows SDK version always follow the CsWinRT update? If so, I find it cumbersome to search for the Windows SDK version and manually change the version number every time.
目前,我看到每一次 CsWinRT 发布新版本的时候,Windows SDK 版本也会随着更新,在 CsWinRT 支持 AOT 之前,Windows SDK 版本更新的并没有那么频繁。所以在之后的版本中,Windows SDK 版本一直会跟随 CsWinRT 更新吗?如果是的话,我觉得每一次需要搜索 Windows SDK 版本并手动修改版本号这个操作很麻烦。

@hez2010
Copy link
Contributor

hez2010 commented Sep 13, 2024

The sdk version will be bumped in future version of .NET SDK. It's not actionable on the CsWinRT side.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants