Skip to content

VSIX Project (Community) - build errors on empty project error MSB4801 error CS0246 #404

Answered by reduckted
cjdutoit asked this question in Q&A
Discussion options

You must be logged in to vote

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

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by cjdutoit
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants