You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Transient ProjectReference to .esproj breaks build due to IgnoreJavaScriptOutputAssembly target running before IncludeTransitiveProjectReferences
#46347
Open
duckblaster opened this issue
Jan 28, 2025
· 5 comments
Building the solution fails with because it is looking for ProjC.dll
This is caused by the IgnoreJavaScriptOutputAssembly target in Microsoft.Common.CurrentVersion.targets running before IncludeTransitiveProjectReferences
To Reproduce
Exceptions (if any)
Further technical details
Include the output of dotnet --info
The IDE (VS / VS Code/ VS4Mac) you're running on, and its version
The text was updated successfully, but these errors were encountered:
There is also a bug in the Microsoft.VisualStudio.JavaScript.Sdk SDK/Targets/SDK.WebAssets.targets file: the PropertyGroup at the start should be in a .props file, as it is setting defaults for StaticWebAssetSourceId and StaticWebAssetBasePath
I think @javiercn will understand the logic behind this better, but I think the property group is correct where it is. StaticWebAssetSourceId is overridable (but defaults to $(ProjectName), and StaticWebAssetBasePath is set depending on the Source Id. We could make BasePath not change a value if it's already set. I'm not sure if that's something that we want in web assets, though.
Describe the bug
With this project structure:
-ProjB.csproj
Building the solution fails with because it is looking for ProjC.dll
This is caused by the IgnoreJavaScriptOutputAssembly target in Microsoft.Common.CurrentVersion.targets running before IncludeTransitiveProjectReferences
To Reproduce
Exceptions (if any)
Further technical details
dotnet --info
The text was updated successfully, but these errors were encountered: