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

Two assets found targeting the same path #2029

Open
johnkattenhorn opened this issue Jun 2, 2023 · 2 comments
Open

Two assets found targeting the same path #2029

johnkattenhorn opened this issue Jun 2, 2023 · 2 comments
Labels
bug Issues describing a bug or pull requests fixing a bug.

Comments

@johnkattenhorn
Copy link

Describe the bug

Using Boxed.API Project Template and Visual Studio 2022 the outputting Project won't compile. The build fails with **Two assets found targeting the same path with incompatible asset kinds:

'C:\code\scratch\api.boxed\api.boxed\api.boxed\Source\api.boxed\wwwroot.well-known\security.txt' with kind 'All'
'C:\code\scratch\api.boxed\api.boxed\api.boxed\Source\api.boxed\wwwroot.well-known\security.txt' with kind 'All'
for path '.well-known/security.txt' api.boxed C:\Program Files\dotnet\sdk\7.0.302\Sdks\Microsoft.NET.Sdk.Razor\targets\Microsoft.NET.Sdk.Razor.StaticWebAssets.targets 419

Steps to reproduce

  1. Create New Boxed API Project
  2. Select the following settings Source Control = None, Cloud Provider=Azure, Tick Open Telemetry, Logging = Serilog, Tick Application Insights, Tick = HTTPS, Tick = HSTS Preload, Distributed Cache = InMemory, Docker Registry = Docker Hub
  3. Click Create
  4. Compile the solution
  5. This should error with the above.

Expected behaviour

It should compile with no errors (and no warnings).

Template

AIP

.NET Boxed Version

Latest

Visual Studio Version

Visual Studio 2022

.NET Version

.NET 6

@johnkattenhorn johnkattenhorn added the bug Issues describing a bug or pull requests fixing a bug. label Jun 2, 2023
@TrungNV31197
Copy link

Same ~~~

@VictorioBerra
Copy link
Collaborator

As a temp fix I think you can just edit the csproj and remove the XML that includes the wwwroot stuff.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issues describing a bug or pull requests fixing a bug.
Projects
None yet
Development

No branches or pull requests

3 participants