nuget - Package Manager console ProjectItem.FileCodeModel returning null in VS 2015 but not in VS 2013 -
there seems there´s bug in package manager when using projectitem.filecodemodel property in vs 2015, returns null unlike vs 2013 expected object.
we´re using vs 2013 ultimate update 3 when works , when using vs 2015 enterprise update 1 returns null.
this how recreate problem.
on vs 2013.
- file --> new --> project…
- choose templates --> visual c# --> web. pick asp.net web application.
- choose mvc template.
- open package manager console.
- insert package manager console: ((get-project).projectitems | foreach-object { $.projectitems } | { $.name -eq "routeconfig.cs" }).filecodemodel.codeelements
- this return codeelements expected.
on vs 2015.
- file --> new --> project…
- choose templates --> visual c# --> web. pick asp.net web application.
- choose mvc template.
- open package manager console.
- insert package manager console: ((get-project).projectitems | foreach-object { $.projectitems } | { $.name -eq "routeconfig.cs" }).filecodemodel.codeelements
- this return nothing since pm doesn´t find in filecodemodel.
i´ve reported bug microsoft connect (more details here: https://connect.microsoft.com/visualstudio/feedback/details/2313258), i´m trying find temporary workaround or solution.
i´m wondering if i´m doing wrong in vs 2015 or if bug? happening well? has idea problem might be? feels odd organisation i´m working first ever have problem...
Comments
Post a Comment