RicoSuter / NuGetReferenceSwitcher

Visual Studio extension to switch between NuGet and project references.
http://nugetreferenceswitcher.org
Microsoft Public License
208 stars 69 forks source link

Add support for new MSBuild .csproj format #29

Open rjmurillo opened 6 years ago

rjmurillo commented 6 years ago

Could not load project NewProjectFormat (new MSBuild .csproj are not supported, unload them first):

System.NullReferenceException: Object reference not set to an instance of an object.

   at NuGetReferenceSwitcher.Presentation.Models.ProjectModel.LoadReferences()
   at NuGetReferenceSwitcher.Presentation.ViewModels.MainDialogModel.GetAllProjects(IEnumerable`1 objects)
arpit-nagar commented 6 years ago

Any update on this ?? We are also facing same issue.

Just for information. I am using Visual Studio 2017 - version 15.3 For .net standard 2.0

watashiSHUN commented 6 years ago

+1

RicoSuter commented 6 years ago

I havent planned to implement this feature - however i accpect prs... im working on a command line version for .net core with this feature, because it is much simpler than developing a vs extension...

monty241 commented 6 years ago

Great extension, would even be better with this issue, so +1.

michael-freidgeim-webjet commented 6 years ago

@RSuter,

command line version for .net core with this feature

Will it be in the same repository? Or in the separate repository? When are you planning to release it?

monty241 commented 6 years ago

As an alternative, you might want to use condition=... in your itemgroups. In that way, depending on $(Configuration) you can use referenced packages or project references easily with one csproj file. Works in both old and new csproj format.

RicoSuter commented 6 years ago

@monty241 this is a really good idea. After I changed all my projects to this, I really no longer need this extension :-)

@michael-freidgeim-webjet i'm not yet sure if I open-source this tool, I'm already spending a lot of time for open source (see my other projects), and I also need to earn some money sometimes or have some free time... the current is not really working very well.

gohar94 commented 4 years ago

Any updates on this?

RicoSuter commented 4 years ago

This is not planned, use DNT instead: https://github.com/RicoSuter/DNT