Skip to content
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

Support for artifacts output layout #181

Open
salty-flower opened this issue Dec 7, 2024 · 0 comments
Open

Support for artifacts output layout #181

salty-flower opened this issue Dec 7, 2024 · 0 comments

Comments

@salty-flower
Copy link

First of all, thank you for making Blazor browser extensions possible!

Current Behavior

Currently, it doesn't fully support Artifacts output layout, which enables a centralized build output folder.

CSC : warning CS8785: Generator 'BackgroundSourceGenerator' failed to generate source. It will not contribute to the output and compilation errors may occur as a result. Exception was of type 'DirectoryNotFoundException' with message 'Could not find a part of the path '$(ProjectDir)\obj\BackgroundWorkerMain.generated.js'.'. [$(ProjectDir)$(ProjectName).csproj]
~\.nuget\packages\blazor.browserextension\2.0.0\build\Blazor.BrowserExtension.Config.targets(50,5): error : An unexpected error occurred when writing option file '$(ProjectDir)$(ArtifactsPath)\obj$(ProjectName)\debug\browserextension\build\browserextension.config.json' [$(ProjectDir)$(ProjectName).csproj]
~\.nuget\packages\blazor.browserextension\2.0.0\build\Blazor.BrowserExtension.Config.targets(50,5): error : The filename, directory name, or volume label syntax is incorrect. : '$(ProjectDir)$(ArtifactsPath)\obj$(ProjectName)\debug\browserextension\build' [$(ProjectDir)$(ProjectName).csproj]

Expected Behavior

The build should succeed and write to the centralized folder.

Potential Solution

Consider change the current$(ProjectDir)$(IntermediateOutputPath) in Blazor.BrowserExtension.Config.targets to a more flexible path structure.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant