I have a standard VSIX project taking a project dependency on a class library project in the same solution. Everything was building just fine until I switched the class library to the new VS2017RC simplified csproj. The class library builds fine (my dotnet SDK is 1.0.0-preview4-004233), but when trying to build the VSIX I get:
error MSB4057: The target "BuiltProjectOutputGroupDependencies" does not exist in the project.
This obviously looks like an incompatibility with a traditional VSIX csproj expecting something from dependent projects that the new csproj doesn't provide.
Has anyone bumped into this or have any advice on working around it? I'm going to look into removing the project reference and manually referencing the output DLL.
As a related side note, it's unclear which output DLL the VSIX would select from the class library, as the new csproj supports multiple target frameworks.
As stated on the GitHub issue, here's a workaround:
.csproj
file.<ProjectReference>
to the project which started causing the issue.<AdditionalProperties>TargetFramework=net452</AdditionalProperties>
, using the correct .NET Framework version you target in the referenced project.If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With