dotnet / aspnetcore

ASP.NET Core is a cross-platform .NET framework for building modern cloud-based web applications on Windows, Mac, or Linux.
https://asp.net
MIT License
35.61k stars 10.06k forks source link

CustomElements includes babel.config.json, package.json and tsconfig.json in project #59110

Open FreyLuis opened 1 week ago

FreyLuis commented 1 week ago

Is there an existing issue for this?

Describe the bug

With version 9.0.0 of the NuGet package Microsoft.AspNetCore.Components.CustomElements, 3 config files are being added as Content.

Image Image

In combination with Microsoft.TypeScript.MSBuild, that leads to the following error when building:

tsc error TS18003: Build:No inputs were found in config file 'C:/Users/luis/.nuget/packages/microsoft.aspnetcore.components.customelements/9.0.0/contentFiles/any/net9.0/js/tsconfig.json'. Specified 'include' paths were '["**/*"]' and 'exclude' paths were '[]'. [C:\Users\luis\source\repos\Trumpf\LDM_Editor_SDK\src\EditorSdk.OAppSdk\TL.LDM.EditorSdk.OAppSdk.csproj]

I don't believe, these 3 files should be included as Content.

Expected Behavior

The mentioned files should not be added to Content.

Steps To Reproduce

Exceptions (if any)

No response

.NET Version

9.0.100

Anything else?

No response

Mindstyler commented 14 hours ago

i just ran into the same isue