Giter Site home page Giter Site logo

Comments (6)

BlizzCrafter avatar BlizzCrafter commented on May 27, 2024 1

Thank you very much for your detailed step by step instructions, much appreciated.

Also very nice to see that the generated package (based on the nuspec file) works fine.

However, it still doesnt work on my end. Maybe there is something wrong with my machine, I don't know. I made sure to update Visual Studio to the newest version, but still no success.

When I am back from vacation I will try it with other machines. Hopefully with more succes.

At least I know now that the nuspec file itself is correctly configured for Net6.

Thanks again for your effort!

from monogame.forms.

AristurtleDev avatar AristurtleDev commented on May 27, 2024 1

No problem. If you need me to test any of it again or something, not sure if you're in the MonoGame discord, but if you are you can ping me or dm me there. I'm under the same name as here in the discord.

from monogame.forms.

AristurtleDev avatar AristurtleDev commented on May 27, 2024

Hey @BlizzCrafter how/what are you using to generate your NuGet package?

I was just able to generate one from your Net6.0 branch using just the basic dotnet pack command. Here is the generated NuGet Info

image

from monogame.forms.

BlizzCrafter avatar BlizzCrafter commented on May 27, 2024

Hey @AristurtleDev and thx for trying to help.

Please create a new WindowsForms (Net6) project now and try to install your generated package. Because this is what fails for me with the above mentioned error message.

I generated the package with dotnet pack and nuget pack. Generation works, but installing does not work.

Would be nice if you could try this.

from monogame.forms.

AristurtleDev avatar AristurtleDev commented on May 27, 2024

Hey @BlizzCrafter

So I was able to get it working no issues? Here are the steps I did

  1. From the Net6.0 branch of your code, I did a dotnet pack on the main project.
  2. Created a new folder on my desktop called mgforms
  3. Created a new folder inside this called NuGet and put the MonoGame.Forms.DX.6.0.0.0.nupkg inside this folder
  4. Created a new Windows Form Application called MonoGamesFormTest and put it inside the mgforms directory I initially created
  5. Edited my NuGet config inside Visual Studio to include the new local path to the mgforms/NuGet directory i mentioned in step 3.
  6. Added the MonoGame.Forms.DX version 6.0.0.0 nuget

I then created a sample application as outlined in your README (only I didn't tell the control to fill lol)

This is a busy screenshot but I tried to include all relavent information in one pic. You can see the .csproj showing the NuGet package reference. Beside that is the NuGet Pacakage Manager window showing the package. The bottom right corner shows where I configured my Locals packages and you can see in the NuGet Pacakage Manager window that I have it set to Locals. You can also see in the Solution Explorer that the package is added under dependencies. And finally in the bottom left you can see the Windows Form application running with the cornflour blue window.

image

from monogame.forms.

BlizzCrafter avatar BlizzCrafter commented on May 27, 2024

I tried it again on other build machines and got it working.

I'm still not sure why it didn't work on other one. It was a fresh windows 10 machine with also fresh installations of nuget and Visual Studio.

However, the problem is solved now.

Thanks again @AristurtleDev for testing!

from monogame.forms.

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.