sdk icon indicating copy to clipboard operation
sdk copied to clipboard

Microsoft.VisualStudio.JavaScript.SDK Has reference to non existent Target

Open asafcyclops opened this issue 1 year ago • 3 comments
trafficstars

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

  1. Create an esproj based on the Microsoft.VisualStudio.JavaScript.Sdk/1.0.586930 SDK.
  2. reference it from a Microsoft.NET.Sdk.StaticWebAssets based project
  3. publish the Microsoft.NET.Sdk.StaticWebAssets based project
  4. 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"/>

asafcyclops avatar Mar 01 '24 21:03 asafcyclops

@joj is this up your alley?

baronfel avatar Mar 01 '24 22:03 baronfel

Oh, yes. We know and we're fixing it :)

joj avatar Mar 01 '24 22:03 joj

Glad to hear it :) Is there some issue link we can track here? Or is it all on internal trackers at this point?

baronfel avatar Mar 01 '24 22:03 baronfel

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

asafcyclops avatar Mar 11 '24 11:03 asafcyclops

This seems to be resolved in the latest version of the package.

Would be nicer to have better communication on this.

asafcyclops avatar Mar 21 '24 06:03 asafcyclops