Code Monkey home page Code Monkey logo

Comments (9)

elachlan avatar elachlan commented on June 26, 2024

@Olina-Zhang can your team please test this?

from winforms.

Olina-Zhang avatar Olina-Zhang commented on June 26, 2024

Tested VS: 17.10.1 and the latest VS build. All cannot repro when did publish operation with targeting .NET 8.0 in VS, it has publish\win-x64 folder
image

from winforms.

gen-angry avatar gen-angry commented on June 26, 2024

Strange. I just tried it again, same result:

Screenshot 2024-06-03 171403

(clicking the folder link after publishing brings up the 'does not exist' error popup)

Screenshot 2024-06-03 171245

Is there something I can send/run that would help figure this one out?

For now I can just use the command line as that seems to work.

from winforms.

Olina-Zhang avatar Olina-Zhang commented on June 26, 2024

How about other Target runtime: win-x86, or win-arm64? I tried it in Visual Studio to publish, all works, can find these folders. Can you please try to repair your VS to see if issue can be resolved?
Here is my result:
image

from winforms.

gen-angry avatar gen-angry commented on June 26, 2024

Just tried it with win-x86, win-arm, linux-x64. Deleted the Release folder every time to make sure it generates a fresh copy. They all produce a windows x64 executable (according to task manager) in the Release folder and no publish folder. It's like it doesn't matter what 'Target Runtime' says. Strange.

Will try to do a repair and post back.

from winforms.

gen-angry avatar gen-angry commented on June 26, 2024

Did VS repair then rebooted. It signed me back in after rebooting and set it back up. Same issue with the test project. All versions 'compile' as a win-x64 executable in the end regardless of what I target, and does not create a publish folder.

Generated a brand new winforms project the same way, tried to publish and same issue.

Generated a new project targeting .NET 6.0, same issue for that version.

Generated a new project it in a different location without spaces in path in case that might have been it, same issue.

Generated another new project on a different drive with no spaces in path, same issue.

Cleaned out older versions of .NET runtimes aside from the latest (which I have updated) from each major version (I have projects in 6, 7, and 8). Same issue. :(

I'm not sure what else I could try aside from reinstalling Windows entirely which I really don't want to do.

edit: I just remembered. I do have a group policy set to lock Win11 to 23H2. I have a WMR headset and didn't want to lose support for it just yet. Would this somehow interfere?

from winforms.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.