NuGetReferenceSwitcher icon indicating copy to clipboard operation
NuGetReferenceSwitcher copied to clipboard

Add support for new MSBuild .csproj format

Open rjmurillo opened this issue 7 years ago • 9 comments

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)

rjmurillo avatar Aug 04 '17 18:08 rjmurillo

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

arpit-nagar avatar Aug 17 '17 12:08 arpit-nagar

+1

watashiSHUN avatar Aug 18 '17 19:08 watashiSHUN

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...

RicoSuter avatar Aug 18 '17 20:08 RicoSuter

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

monty241 avatar Aug 30 '17 22:08 monty241

@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?

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.

monty241 avatar Oct 04 '17 14:10 monty241

@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.

RicoSuter avatar Oct 04 '17 14:10 RicoSuter

Any updates on this?

gohar94 avatar Oct 23 '19 17:10 gohar94

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

RicoSuter avatar Mar 20 '20 15:03 RicoSuter