Code Monkey home page Code Monkey logo

Comments (8)

giboX avatar giboX commented on August 26, 2024 1

It works! (mostly)
I changed the dnt-file so it has multiple entries for one nuget-package. Now switch-to-projects changes the solution as wanted.

BUT:
the dnt-file is modified with a "restore"-section to restore the solution.
But the "mappings"-section is changed, so only one line is remaining! That looks like an error. The file should be restored to the original state to make it possible to use it again quickly.
i do a revert from svn before next use, but that should be fixed.

from dnt.

giboX avatar giboX commented on August 26, 2024

After some debugging dnt:

am i correct, that dnt does not support multiple dlls (source projects) in one nuget-package?
It looks, that dnt-file can´t hold the information, what nuget-package has to be replaced by it´s source-projects.

As all my nuget-packages include multiple dll-projects, this would make dnt useless for me. Or is there a workaround (pleas put it in wiki) or plans to add support?

from dnt.

simax avatar simax commented on August 26, 2024

Are you referring to this type of structure?

from dnt.

giboX avatar giboX commented on August 26, 2024

Yes! This is nearly my situation. Except, that my solution references multiple packages with each holding multiple dlls.
The projects of the dlls are included into my solution, but the referenced nuget-Package is still there.
I think, it´s a problem with my dnt file. The option of mutliple dlls is not mentioned in samples oder documentation.
I will try this evening....

from dnt.

Codare avatar Codare commented on August 26, 2024

@giboX could you please give us an example of your dnt file?

from dnt.

RicoSuter avatar RicoSuter commented on August 26, 2024

But the "mappings"-section is changed, so only one line is remaining! That looks like an error.

i think this could be a bug / unforeseen problem because you defined the same nuget twice?

from dnt.

giboX avatar giboX commented on August 26, 2024

I created some snippets from my system. My original working file is much larger, so i cut out some lines and changed names.
The Problem is, that i have multiple DLLs in one Package.
A quick look into dnt source shows, that does not use the list of mappings to write the dnt file.

This was tested with 1.5.1 and 1.6.1

This is the original file:

{
"solution": "My_Sln.sln",
"mappings": {
"Pkg_1": "C:/dev/Packages/Pkg_q/trunk/P_1.csproj",
"Pkg_1": "C:/dev/Packages/Pkg_q/trunk/P_2.csproj",
}
}

This file is changed to:

{
"solution": "My_Sln.sln",
"mappings": {
"Pkg_1": "C:/dev/Packages/Pkg_q/trunk/P_1.csproj"
},
"restore": [
{
"name": "Package_1",
"packages": [
{
"packageName": "Pkg_1",
"version": "3.24.0-"
}
]
},
{
"name": "Package_2",
"packages": [
{
"packageName": "Pkg_2",
"version": "3.24.0-
"
}
]
}
]
}

from dnt.

giboX avatar giboX commented on August 26, 2024

i found my error: it´s the json-file!

Back then i followed the advice from @simax, but there i took the wrong sample as a solution. So it did not work.

My correct json file should look like this: (the package needs an array!)

{
"solution": "My_Sln.sln",
"mappings": {
"Pkg_1": [
"C:/dev/Packages/Pkg_q/trunk/P_1.csproj",
"C:/dev/Packages/Pkg_q/trunk/P_2.csproj"]
}
}

from dnt.

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.