-
Hi all, I am on the latest version of VS2022 (17.4.3) and are currently seeing build errors on GitHub on a brand new VSIX project without any code in it. Building the project within Visual Studio is fine, but doing a build on GitHub for PR's fails. I can replicate this locally by running I get the following error on a few files:
I then tried the non-community VSIX projects and seems to be getting errors there as well on the same files although the error code is now different
Have any of you seen? Any suggestions on a fix? Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Unfortunately you cannot (currently) use the .NET CLI to compile a Visual Studio extension. https://developercommunity.visualstudio.com/t/VSIX-project-with-SDK-style-csproj/1572145 Thankfully it appears to be in progress (see this comment on that ticket and the What's Next section in the blog post about VS 17.4). So hopefully in 17.5 we'll be able to use the .NET CLI 🤞 In the meantime, you can still build the extension in a GitHub action, but you have to use MSBuild to do it via the |
Beta Was this translation helpful? Give feedback.
-
@reduckted Thanks for the feedback and the pointer to use msbuild. I will update my GitHub action. Appreciate your help. |
Beta Was this translation helpful? Give feedback.
Unfortunately you cannot (currently) use the .NET CLI to compile a Visual Studio extension.
https://developercommunity.visualstudio.com/t/VSIX-project-with-SDK-style-csproj/1572145
Thankfully it appears to be in progress (see this comment on that ticket and the What's Next section in the blog post about VS 17.4). So hopefully in 17.5 we'll be able to use the .NET CLI 🤞
In the meantime, you can still build the extension in a GitHub action, but you have to use MSBuild to do it via the
microsoft/setup-msbuild
action. Here's an example:https://github.com/reduckted/ProjectFilter/blob/19950f9ab2add92964a83a2052b29a9852be4bad/.github/workflows/ci.yml#L16-L33