-
Notifications
You must be signed in to change notification settings - Fork 85
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
Open custom SDK project in Visual Studio #18
Comments
It will work in Visual Studio 15.6+ only. What version of Visual Studio do you have? What exactly is the error message you're seeing? |
@jeffkl This error occours when I reference the SDK as a Project SDK like this The error log from the message above
Visual Studio output window from solutions says
|
That looks like some problem with the Visual Studio project system. I have a newer internal preview installed and it seems to be working. Do you have a non-Preview installation of Visual Studio on your machine that you can try? |
If its broken in 15.6.4, there's more going on than just MSBuild SDK resolution. @davkean should I route this to project system? Or do you know who would be the appropriate people to route it to? |
So, Visual Studio from yesterday 15.6.5 doesn't work. |
Can you provide some exact repro steps? I can try to debug it if I can get it to happen. |
Sure, very simple. |
Okay that sounds like #20 which I'm working on fixing! |
Okay, thanks. Then we wait to adopt this one... |
Recent versions of Visual Studio require imports and properties otherwise it will migrate the project to a legacy project. I'm adding imports to the Microsoft.NET.Sdk and users will have to specify a TargetFramework in their projects. I also updated the README to reflect this. * Added common library for unit tests * Add unit tests for NoTargets Fixes #18 Fixes #20
I've fixed the SDK but you now have to include the TargetFramework otherwise Visual Studio will attempt to upgrade it. <Project Sdk="Microsoft.Build.NoTargets/1.0.26">
<PropertyGroup>
<!--
Any target framework you want as long as its compatible
with your referenced NuGet packages
-->
<TargetFramework>net45</TargetFramework>
</PropertyGroup>
<Target Name="HelloWorld" AfterTargets="Build">
<Message Text="Hello World" Importance="High" />
</Target>
</Project> https://github.com/Microsoft/MSBuildSdks/releases/tag/Microsoft.Build.NoTargets.1.0.26 https://www.nuget.org/packages/Microsoft.Build.NoTargets/1.0.26 |
Is it the expected behavior, that a custom SDK project cannot be opened inside VS?
Or goes something wrong on my machine...
The text was updated successfully, but these errors were encountered: