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

[BUG] error when publishing Bloxstrap via dotnet cli #2981

Open
3 of 4 tasks
5wsm opened this issue Sep 27, 2024 · 3 comments
Open
3 of 4 tasks

[BUG] error when publishing Bloxstrap via dotnet cli #2981

5wsm opened this issue Sep 27, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@5wsm
Copy link

5wsm commented Sep 27, 2024

Acknowledgement of preliminary instructions

  • I have read the preliminary instructions, and I am certain that my problem has not already been addressed.
  • I have thoroughly looked through the available Wiki articles and could not find a solution to my problem.
  • I am using the latest version of Bloxstrap.
  • I did not answer truthfully to all the above checkboxes.

What problem did you encounter?

i followed every step provided Building Bloxstrap from Source (clone, initialize/update submodule, and publish) but getting error during publish

i have no idea what's going on but i'm assuming it's a framework issue

error log (in the error log, ~ means %userprofile%)

Restore succeeded with 3 warning(s) in 1.0s
    ~\Bloxstrap\Bloxstrap.csproj : warning NU1903: Package 'System.Private.Uri' 4.3.0 has a known high severity vulnerability, https://github.com/advisories/GHSA-5f2m-466j-3848
    ~\Bloxstrap\Bloxstrap.csproj : warning NU1902: Package 'System.Private.Uri' 4.3.0 has a known moderate severity vulnerability, https://github.com/advisories/GHSA-x5qj-9vmx-7g6g
    ~\Bloxstrap\Bloxstrap.csproj : warning NU1903: Package 'System.Private.Uri' 4.3.0 has a known high severity vulnerability, https://github.com/advisories/GHSA-xhfc-gr8f-ffwc
  Wpf.Ui failed with 1 error(s) (0.0s)
    C:\Program Files\dotnet\sdk\9.0.100-preview.7.24407.12\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.Sdk.CrossTargeting.targets(31,5): error NETSDK1129: The 'Publish' target is not supported without specifying a target framework. The current project targets multiple frameworks, you must specify one of the following frameworks in order to publish: net6.0-windows
You are using a preview version of .NET. See: https://aka.ms/dotnet-support-policy
C:\Program Files\dotnet\sdk\9.0.100-preview.7.24407.12\Sdks\Microsoft.NET.Sdk\Sdk\Sdk.props(49,3): warning MSB4011: "C:\Program Files\dotnet\sdk\9.0.100-preview.7.24407.12\Current\Microsoft.Common.props" cannot be imported again. It was already imported at "%userprofile%\.nuget\packages\microsoft.build.centralpackageversions\2.1.3\Sdk\Sdk.props (15,3)". This is most likely a build authoring error. This subsequent import will be ignored. [~\bloxstrap\wpfui\src\Wpf.Ui\Wpf.Ui_0vnwiaki_wpftmp.csproj]
  Wpf.Ui net6.0-windows succeeded (2.3s) → wpfui\src\Wpf.Ui\bin\Debug\net6.0-windows\Wpf.Ui.dll
  Bloxstrap_r0umnd0e_wpftmp succeeded with 3 warning(s) (0.7s)
    ~\Bloxstrap\Bloxstrap_r0umnd0e_wpftmp.csproj : warning NU1903: Package 'System.Private.Uri' 4.3.0 has a known high severity vulnerability, https://github.com/advisories/GHSA-5f2m-466j-3848
    ~\Bloxstrap\Bloxstrap_r0umnd0e_wpftmp.csproj : warning NU1902: Package 'System.Private.Uri' 4.3.0 has a known moderate severity vulnerability, https://github.com/advisories/GHSA-x5qj-9vmx-7g6g
    ~\Bloxstrap\Bloxstrap_r0umnd0e_wpftmp.csproj : warning NU1903: Package 'System.Private.Uri' 4.3.0 has a known high severity vulnerability, https://github.com/advisories/GHSA-xhfc-gr8f-ffwc
  Bloxstrap succeeded with 3 warning(s) (2.9s) → Bloxstrap\bin\Release\net6.0-windows\publish\win-x64\
    ~\Bloxstrap\Bloxstrap.csproj : warning NU1903: Package 'System.Private.Uri' 4.3.0 has a known high severity vulnerability, https://github.com/advisories/GHSA-5f2m-466j-3848
    ~\Bloxstrap\Bloxstrap.csproj : warning NU1902: Package 'System.Private.Uri' 4.3.0 has a known moderate severity vulnerability, https://github.com/advisories/GHSA-x5qj-9vmx-7g6g
    ~\Bloxstrap\Bloxstrap.csproj : warning NU1903: Package 'System.Private.Uri' 4.3.0 has a known high severity vulnerability, https://github.com/advisories/GHSA-xhfc-gr8f-ffwc

Build failed with 1 error(s) and 10 warning(s) in 6.4s

Bloxstrap Log

N/A

@pizzaboxer
Copy link
Owner

pizzaboxer commented Sep 27, 2024

Matt, none of what you just said makes sense or applies.

I didn't even know .NET 9 was already out. What the hell?

This is likely some weird new requirement with the .NET 9 SDK. Can you quickly try uninstalling the 9 SDK, install the 8 SDK, see if that one works? https://dotnet.microsoft.com/en-us/download/dotnet/thank-you/sdk-8.0.402-windows-x64-installer

@5wsm
Copy link
Author

5wsm commented Sep 28, 2024

oh, then this makes sense. the error log says i am using a preview version of dotnet.

8 sdk indeed published successfully, but getting some errors during publish (not a big deal right?)

@pizzaboxer
Copy link
Owner

but getting some errors during publish (not a big deal right?)

Probably not, but what were they?

@pizzaboxer pizzaboxer added the bug Something isn't working label Sep 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants