I can't run code inspection on VB projects after upgrading to .net 4.5.2

When I changed my projects over to .net 4.5.2 the only changes that were made to the project file where

to move

<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> to
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">

and

<TargetFrameworkVersion>v4.5</TargetFrameworkVersion> to
<TargetFrameworkVersion>v4.5.2</TargetFrameworkVersion>

All my c# projects have the sames changes and they build fine in Team City.  But all the vb projects error with:


[12:41:04]Step 3/7: Inspections (.NET) (32m:26s)

[12:41:53][Step 3/7] Internal exception thrown: Can not update content of project 'MyApp.webapp'. Object reference not set to an instance of an object.  --- EXCEPTION #1/2 [NullReferenceException] Message = "Object reference not set to an instance of an object." ExceptionPath = Root.InnerException ClassName = System.NullReferenceException HResult = COR_E_NULLREFERENCE=E_POINTER=80004003 Source = JetBrains.Platform.ReSharper.ProjectModel.MsBuild StackTraceString = "   at JetBrains.ProjectModel.MsBuild.Extensions.VBProjectReferencesBuilder.ProcessNoStdLibProperty(Boolean noStdLibProperty, OneToListMap`2 referencesByAssemblyNameIgnoreCase, IProjectProperties projectProperties)      at JetBrains.ProjectModel.MsBuild.Extensions.ProjectReferencesBuilder.BuildProjectReferences(ProjectInstance projectInstance, IProjectProperties projectProperties, MsBuildProject msBuildProject, ISolution solution, BuildManager buildManager)      at JetBrains.ProjectModel.MsBuild.Extensions.MsBuildProjectUpdater.UpdateOrCreateProject(MsBuildProject msBuildProject, IProject parentProject, ISolution solution, BuildManager buildManager)      at JetBrains.ProjectModel.MsBuild.Internal.MsBuildProjectModelSynchronizer.LoadProject(MsBuildProject msBuildProject, IProject parentProject) "  --- Outer ---  --- EXCEPTION #2/2 [LoggerException] Message = "Can not update content of project 'LionsDen.webapp'. Object reference not set to an instance of an object." ExceptionPath = Root ClassName = JetBrains.Util.LoggerException InnerException = "Exception #1 at Root.InnerException" HResult = COR_E_APPLICATION=80131600 StackTraceString = "   at JetBrains.Util.Logging.Logger.Catch(Action action)      at JetBrains.ProjectModel.Tasks.SolutionLoadTasksSchedulerBase.ExecuteOneTask(SolutionLoadTask task)      at JetBrains.ProjectModel.Tasks.SolutionLoadTasksSchedulerBase.DispatchTasks(Boolean background)      at JetBrains.ProjectModel.SolutionManagerBase.CreateSolutionInstance(SolutionElement solutionElement, SolutionInstance solutionInstance)      at JetBrains.ProjectModel.MsBuild.Internal.MsBuildSolutionManager.<>c__DisplayClass4.<>c__DisplayClass6.<.ctor>b__1()      at JetBrains.Threading.ReentrancyGuard.Execute(String name, Action action)      at JetBrains.Threading.ReentrancyGuard.ExecuteOrQueue(String name, Action action)      at JetBrains.ProjectModel.MsBuild.Internal.MsBuildSolutionManager.<>c__DisplayClass4.<.ctor>b__0(Lifetime msBuildSolutionLifetime, MsBuildSolution msBuildSolution)      at JetBrains.DataFlow.Lifetimes.Define(Lifetime lifetime, String id, Action`2 FAtomic, ILogger logger)      at JetBrains.DataFlow.SequentialLifetimes.DefineNext(Action`2 FNext)      at JetBrains.DataFlow.Signal`1.NotifySinks(TValue payload)      at JetBrains.DataFlow.Signal`1.Fire(TValue value, Object cookie)      at JetBrains.DataFlow.Property`1.FireChange(TValue old, TValue new, Object cookie)      at JetBrains.DataFlow.Property`1.SetValue(TValue value, Object cookie)      at JetBrains.ProjectModel.MsBuild.MsBuildSolutionHost.OpenSolution(FileSystemPath location, IMsBuildSolutionUserProfile userProfile)      at JetBrains.CommandLine.InspectCode.InspectCodeProductMain.OpenSolution(FileSystemPath solutionFilePath)      at JetBrains.CommandLine.InspectCode.InspectCodeProductMain.Run()      at JetBrains.CommandLine.Common.ConsoleApplicationHost.DoMain(Lifetime lifetime, IApplicationDescriptor descriptor, String configurationName, Object[] componentsToInject)      at JetBrains.CommandLine.Common.ConsoleApplicationHost.Main(Func`1 createApplicationDescriptor, Func`1 createHostCommandLine, String configurationName, Object[] componentsToInject)      at JetBrains.CommandLine.InspectCode.InspectCodeProgram.Main(String[] args) "

[12:41:53]
1 comment
Comment actions Permalink

@Robson, looks like it is a known issue https://youtrack.jetbrains.com/issue/TW-35098
Please watch for changes in that issue. It will be fixed in scope of 9.0.x bugfix.

0

Please sign in to leave a comment.