-
Notifications
You must be signed in to change notification settings - Fork 28
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
Support Visual Studio 2017 .NET Core csproj Projects #96
Comments
@RehanSaeed can you share a sample? |
@sayedihashimi I have a branch. Just try opening the solution and building. |
Doing some more investigation, I looked at the section in
I'm not sure what these lines do. The comment added by @sayedihashimi suggests that it's not needed, so I tried removing it and I was able to build a VSIX again. I've not validated the VSIX works yet as I've run out of time but it does contain my projects. |
Yes I looked at that a while ago and I'm pretty sure we can remove that. Can you verify and send a PR? I'll release an update. |
@sayedihashimi I just tested removing those lines:
|
How about non core projects? This could be a bug in the Roslyn project system. |
My MVC 5 project (non .NET Core) gets created just fine. |
@RehanSaeed can you share the .vsix which shows this behavior? |
@sayedihashimi Here is a link to my VSIX on MyGet: |
Raised this PR to partly fix this issue: #98. Remaining Issue 1I occasionally get the following random error that stops the VSIX building but I can use this potential fix: dotnet/fsharp#1751 which builds the VSIX but I still get build errors. This does leave me unable to debug.
Remaining Issue 2I can generate a VSIX from Visual Studio 2017 but can't seem to run MSBuild.exe to generate the VSIX file. When running the command below, the project files and other files get copied and zipped but a VSIX file is not generated.
Remaining Issue 3When I run my code to edit and delete files, Visual Studio 2017 crashes with the error below.
|
:( |
@shanselman Nice to see you share my pain. Building a VSIX is extremely frustrating process, every VS upgrade breaks something. Would like to move to |
Have raised Build a UI in Visual Studio for dotnet new Templates as an issue. |
Sorry for the delay. Work has been insane lately and at home I have a @RehanSaeed I can see the branch you linked above. Is it somewhere else? |
@sayedihashimi Congrats on the baby, it takes about a year to get some sleep :) Although, I still sometimes have trouble with my little girl. Merged into master. I'm planning to release a hacked together VSIX that:
Not ideal but at least I can release something. |
@RehanSaeed I've merged your PR and released it as
Those files must be coming in from .net core .targets/.props files but I haven't figured out which one yet. For now I've just special cased them and explicitly excluded them. If you see the same issue in your hacked version you can add those values to the About the issue you mentioned about not being able to build the .vsix. I created a new vsix project in VS for testing templates and I was able to build the vsix with the following command. I think maybe
I'm still looking into this issue. Will reply back here when I get more info to share. |
Thanks for that! Issue 1 FixedA lot of people are getting the Issue 2 FixedThanks for that, I can do CI again! Your secret MSBuild argument Issue 3 RemainsI still get the following exception when overwriting files in the project when applying the users feature selections. This looks like a .NET Core tooling issue:
|
Released an update. Issue 3 seems to be gone the last time I tried after updating VS. Will create a new VS tooling issue if it re-occurs. I still show a modal warning dialogue telling the user to expect VS to crash just in case :(. |
I get the following error for every NuGet package in my template project (.NET Core csproj) while trying to build my VSIX using Visual Studio:
@RandomlyKnighted Any ideas if the new format is supported.
The text was updated successfully, but these errors were encountered: