sdk
sdk copied to clipboard
Microsoft.VisualStudio.JavaScript.SDK Has reference to non existent Target
Describe the bug
Within the Microsoft.VisualStudio.JavaScript.SDK Package the _RunNpmCommandForPublishAssets target is dependent on GenerateNPMCommandProps however this task does not exists which results in a compilation error
To Reproduce
- Create an esproj based on the Microsoft.VisualStudio.JavaScript.Sdk/1.0.586930 SDK.
- reference it from a Microsoft.NET.Sdk.StaticWebAssets based project
- publish the Microsoft.NET.Sdk.StaticWebAssets based project
- receive the error
Exceptions (if any)
/Users/asaf/.nuget/packages/microsoft.visualstudio.javascript.sdk/1.0.586930/Sdk/Sdk.targets(291,49): error MSB4057: The target "GenerateNPMCommandProps" does not exist in the project. [/Users/asaf/dev/Cyclops/src/ClientApplication/ClientApplication.esproj]
P.S
I guess this is a rename error to the GeneratePackageJsonProps target. as a workaround I have created the following target in my project
<Target Name="GenerateNPMCommandProps" DependsOnTargets="GeneratePackageJsonProps"/>
@joj is this up your alley?
Oh, yes. We know and we're fixing it :)
Glad to hear it :) Is there some issue link we can track here? Or is it all on internal trackers at this point?
Hey, I saw there a new version of the SDK was released but without the fix.
Any ETA for a fix?
I don't mind contributing this myself if possible
This seems to be resolved in the latest version of the package.
Would be nicer to have better communication on this.