DiscoveryType.VisualStudioSetup no longer works when upgrading to net60 explicitly targeting net60-windows/win-x64
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 35/100
- Issue 类型
- 功能
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- csharp
- 领域
- build-system, devtools
调研方向
先从 MSBuildLocator.QueryVisualStudioInstances 以及 DiscoveryType.VisualStudioSetup 和 DiscoveryType.DeveloperConsole 路径开始,然后比较以 net60、net60-windows 和 win-x64 为目标时的行为。当受支持的功能可在适当的包中使用,或不受支持的发现过程明确失败,并且包文档解释该限制及替代方案时,此 issue 即得到解决。
由索引模型根据 Issue 内容生成。
描述
We are in the process of upgrading our test infrastructure to net60 and we are using MSBuildLocator.QueryVisualStudioInstances(new VisualStudioInstanceQueryOptions { DiscoveryTypes = DiscoveryType.VisualStudioSetup }) to get the location of msbuild.exe, which we need to perform out of process roundtrip testing of our decompiler (as can be seen here).
Could you please provide a Windows-specific build of this nuget package, which works with net60 and up and includes the FEATURE_VISUALSTUDIOSETUP features?
Either that, or:
- Fail fast with a
NotSupportedExceptionifDiscoveryType.VisualStudioSetuporDiscoveryType.DeveloperConsoleare used, stating the reason - I had to decompile the nuget package to understand what was going on, - Update the documentation and package description accordingly so that it says that (more than) half of the features are not available when using the nuget package with net or netcore
- and provide guidance on how to get the functionality, if it is not/no longer available using this official package - this is especially important because the classic framework will fade away sooner or later, leaving us in this "broken" state.
Alternatively, %PROGRAMFILES%\dotnet\sdk<version>\ could simply include a runnable msbuild.exe for people, who need it. But I guess, this would be a request for the dotnet runtime repo. I am just wondering, why nobody at Microsoft thought this might be useful and included it out of the box.
Thank you very much!
- 主要语言
- C#
- 星标
- 262
- 派生
- 91
- 平均合并
- 11 天 22 小时
- 30 天内合并 PR
- 3
环境准备
我们还没有检查这个项目的环境配置文件。先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
microsoft/MSBuildLocator 的其他 Issue
-
难度 3/5 1-2 天 新手友好度 52/100
microsoft/MSBuildLocator#390 · 1 个 reaction ·
-
难度 4/5 3-5 天 新手友好度 64/100
microsoft/MSBuildLocator#389 ·
-
难度 4/5 3-5 天 新手友好度 45/100
microsoft/MSBuildLocator#380 ·
-
难度 3/5 1-2 天 新手友好度 48/100
microsoft/MSBuildLocator#377 ·
-
难度 5/5 一周以上 新手友好度 30/100
microsoft/MSBuildLocator#371 · 1 条评论 ·
查看 microsoft/MSBuildLocator 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 88/100
microsoft/onnxruntime-genai#2633 ·
维护者通常 1 天内回复
-
python triage
难度 2/5 1-3 小时 新手友好度 85/100
microsoft/semantic-kernel#14491 ·
维护者通常 2 天内回复
-
area:jobads-cv FE mvp P3
难度 2/5 1-3 小时 新手友好度 88/100
klasolsson81/jobbliggaren#1878 ·
维护者通常 1 天内回复
-
bug help wanted
难度 2/5 1-3 小时 新手友好度 82/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
SubtitleEdit/subtitleedit#15331 · 2 条评论 ·
维护者通常 1 天内回复