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.

  1. file --> new --> project…
  2. choose templates --> visual c# --> web. pick asp.net web application.
  3. choose mvc template.
  4. open package manager console.
  5. insert package manager console: ((get-project).projectitems | foreach-object { $.projectitems } | { $.name -eq "routeconfig.cs" }).filecodemodel.codeelements
  6. this return codeelements expected.

on vs 2015.

  1. file --> new --> project…
  2. choose templates --> visual c# --> web. pick asp.net web application.
  3. choose mvc template.
  4. open package manager console.
  5. insert package manager console: ((get-project).projectitems | foreach-object { $.projectitems } | { $.name -eq "routeconfig.cs" }).filecodemodel.codeelements
  6. 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

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -