-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Building a Microsoft.VisualStudio.JavaScript.SDK
on OS X results in a folder named obj\Release
#46465
Comments
I am seeing the same issue described in angular/angular-cli#28936 when building on a Ubuntu (24.04.1) GitHub-hosted runner. The error is also referring to the It turns out that when There is no The existence of the This sounds similar to your issue @miguellira but with the opposite build configuration. You are running |
@alexmg like you and @marklagendijk I also encountered the issue deploying on a GitHub Ubuntu runner. My typical GitHub workflow follows this pattern: dotnet restore
dotnet build --no-restore
dotnet publish --no-restore --configuration Release and by leveraging the Artifacts output layout feature introduced in .NET 8 I have a consistent folder to zip and deploy. My workaround works for me. Have you tried adding all configuration paths to your # Weird esproj bug
obj\\Debug
obj\\Release |
I copied the solution to a path on my Ubuntu distro in WSL instead of referencing the Windows drive on the It seems that as long as the weird folder name aligns with the build configuration used when calling Your configuration for Running the same commands you provided, but with the
I believe it's the configuration being the same for the I don't have those paths in my |
Describe the bug
When building an
.esproj
project on OS X the generated artifacts includes twopackage.g.props
files. One in theobj
folder and another in a similar folder that includes a backslashobj\Release
:As a result, the following
.gitignore
entry which excludes the folder by escaping the backslash is required:otherwise during a clean build of an Angular SPA template a TypeScript error similar to the one documented here is thrown.
Note: In addition, (but completely unrelated to the bug) it would be nice if the JavaScript SDK supported the new Artifacts output layout introduced in .NET 8.
To Reproduce
esproj-bug
..esproj
file inside the folder with the following content:npm init
and generate apackage.json
dotnet build
Exceptions (if any)
No exception is thrown during build, however, when building an
Angular v19
solution a TypeScript error is thrown if thatobj\Release
folder exists.Further technical details
dotnet --info
Visual Studio Code
The text was updated successfully, but these errors were encountered: