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

Doesn't work with net 9.0 #72

Open
r-tmp opened this issue Nov 12, 2024 · 9 comments
Open

Doesn't work with net 9.0 #72

r-tmp opened this issue Nov 12, 2024 · 9 comments

Comments

@r-tmp
Copy link

r-tmp commented Nov 12, 2024

When project is trageting dotnet 9.0, publishing fails with the following error:

error MSB3073: The command ""C:\Users\USER\.nuget\packages\nulastudio.netbeauty\2.1.4.6\targets\../tools/win-x86/nbeauty2.exe" --loglevel Info --usepatch "C:\src\MyApp\bin\Release\net9.0-windows\win-x64\publish\/." ./libraries " exited with code 1.

It's a WPF if it makes any difference.

@julienGrd
Copy link

I also ave trouble with .net9.0, for me it work but a lot of dll are not moved to the subfolder and stay at the root, there is a list :

"Microsoft.AspNetCore.Metadata.dll"
"Microsoft.AspNetCore.WebUtilities.dll"
"Microsoft.JSInterop.dll"
"Microsoft.Net.Http.Headers.dll"
"System.Formats.Asn1.dll"
"System.Net.Http.Json.dll"
"System.Text.Json.dll"
"Microsoft.AspNetCore.Authorization.dll"
"Microsoft.AspNetCore.Components.Authorization.dll"
"Microsoft.AspNetCore.Components.dll"
"Microsoft.AspNetCore.Components.Forms.dll"
"Microsoft.AspNetCore.Components.Web.dll"

My app is a blazor webapp. I use visual studio 17.12

I prefered put a comment rather than open new issue because i think its better centralize all issues around .net 9.0 here.

thanks !

@liesauer
Copy link
Member

When project is trageting dotnet 9.0, publishing fails with the following error:

error MSB3073: The command ""C:\Users\USER\.nuget\packages\nulastudio.netbeauty\2.1.4.6\targets\../tools/win-x86/nbeauty2.exe" --loglevel Info --usepatch "C:\src\MyApp\bin\Release\net9.0-windows\win-x64\publish\/." ./libraries " exited with code 1.

It's a WPF if it makes any difference.

is that ok to post the full build log here? there should be a more detail error near this line.

@liesauer
Copy link
Member

I also ave trouble with .net9.0, for me it work but a lot of dll are not moved to the subfolder and stay at the root

it depends on many things, but still less dlls then your post in most of time, let me collect few questions first:

  1. are you building or publishing?
  2. if publishing, are you publishing framework-dependent or self-contained?
  3. post the config if you could, a demo would be great

@r-tmp
Copy link
Author

r-tmp commented Nov 13, 2024

Sorry, should've given steps to reproduce.

To answer your questions:

  1. publishing.
  2. self-contained
  3. I've given steps to reproduce and the sample csproj content in the original post above.

@julienGrd
Copy link

julienGrd commented Nov 13, 2024

I also ave trouble with .net9.0, for me it work but a lot of dll are not moved to the subfolder and stay at the root

it depends on many things, but still less dlls then your post in most of time, let me collect few questions first:

  1. are you building or publishing?
  2. if publishing, are you publishing framework-dependent or self-contained?
  3. post the config if you could, a demo would be great

publishing framework dependent, you will find a repro here : https://github.com/julienGrd/BlazorAppTestNetBeautyWithPdb, just checkout the project and publish and you will see these dll not moved

@liesauer
Copy link
Member

publishing framework dependent, you will find a repro here : https://github.com/julienGrd/BlazorAppTestNetBeautyWithPdb, just checkout the project and publish and you will see these dll not moved

that's weird, it works as expected here.
image

@julienGrd
Copy link

publishing framework dependent, you will find a repro here : https://github.com/julienGrd/BlazorAppTestNetBeautyWithPdb, just checkout the project and publish and you will see these dll not moved

that's weird, it works as expected here. image

OK i just switch from 17.12 preview 5 to 17.12 in the stable canal, i dont' see anymore these dll at the root but neither in the libraries folder (which can be normal because i reference the package but dont use it in my code). I will take a look with my regular project how its going

@liesauer
Copy link
Member

OK i just switch from 17.12 preview 5 to 17.12 in the stable canal, i dont' see anymore these dll at the root but neither in the libraries folder (which can be normal because i reference the package but dont use it in my code). I will take a look with my regular project how its going

you can search that dll name in deps.json, if there is no record, then it is normal. and if your are publishing FDD and the dll is belongs to the framework, it still normal there is a record in deps.json but no dll in any app folder.

@julienGrd
Copy link

i don't see any problems in my main app, i think its was just a weird behavior by using the preview5 visual studio. For me my problem is close, thanks for your help !

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

3 participants