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

New commandline switch? -- NuGet Install -tfm netfx35 #3153

Closed
MV10 opened this issue Jul 16, 2016 · 2 comments
Closed

New commandline switch? -- NuGet Install -tfm netfx35 #3153

MV10 opened this issue Jul 16, 2016 · 2 comments
Labels
Milestone

Comments

@MV10
Copy link

MV10 commented Jul 16, 2016

I have a scenario in which a NuGet package contains a set of files targeting two frameworks, lib/net35 (for a Unity game project) and lib/netstandard16 (for reusing the DLLs server-side in a .NET Core REST API). No problems loading up my package on the Core side through VS2015 as normal.

The trouble is getting the net35 files into the Unity game project. Unity routinely overwrites the solution/project files so NuGet doesn't really work well with Unity projects, and DLLs should be dropped somewhere under an "Assets" folder in a Unity project folder.

I tried to create a simple batch file in the folder where I store my packages with a command like this:

nuget install ClientLibraries -OutputDirectory "C:\Users\Public\Documents\Unity Projects\Client\Assets\GameDLL"

However, that dumps both framework libs into the folder, which is a problem. Would it be a big deal to add a switch along the lines of "-Framework net35" to the install command for times when a VS project file isn't around to consult?

@rrelyea rrelyea added the Product:NuGet.exe NuGet.exe label Jul 19, 2016
@rrelyea rrelyea added this to the Future milestone Jul 19, 2016
@rrelyea
Copy link
Contributor

rrelyea commented Jul 19, 2016

NuGet install was not designed to work with multiple TFMs. In the short term, we won't be able to address this feature request. Putting into future.

@rrelyea rrelyea changed the title Command-line switch to choose framework target to install? New commandline switch? -- NuGet Install -tfm netfx35 Jul 19, 2016
@PatoBeltran
Copy link

We haven’t been able to fully investigate your problem as our focus has been on other problem reports. If there are more community feedback on this, then we'll re-evaluate this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants