Intent.Modules icon indicating copy to clipboard operation
Intent.Modules copied to clipboard

After installing VS 2019 there is an MSBuild Version error

Open dandrejvv opened this issue 6 years ago • 0 comments

Running only VS 2019 (without having 2015 or earlier installed):

Microsoft.Build.Exceptions.InvalidProjectFileException: The tools version "15.0" is unrecognized. Available tools versions are "14.0", "2.0", "3.5", "4.0". C:\Dev\Project\Project.csproj at Microsoft.Build.Shared.ProjectErrorUtilities.ThrowInvalidProject(String errorSubCategoryResourceName, IElementLocation elementLocation, String resourceName, Object[] args) at Microsoft.Build.Evaluation.Project.Data.InitializeForEvaluation(IToolsetProvider toolsetProvider, IFileSystem fileSystem) at Microsoft.Build.Evaluation.Evaluator`4..ctor(IEvaluatorData`4 data, ProjectRootElement projectRootElement, ProjectLoadSettings loadSettings, Int32 maxNodeCount, PropertyDictionary`1 environmentProperties, IItemFactory`2 itemFactory, IToolsetProvider toolsetProvider, ProjectRootElementCache projectRootElementCache, ISdkResolverService sdkResolverService, Int32 submissionId, EvaluationContext evaluationContext, Boolean profileEvaluation) at Microsoft.Build.Evaluation.Evaluator`4.Evaluate(IEvaluatorData`4 data, ProjectRootElement root, ProjectLoadSettings loadSettings, Int32 maxNodeCount, PropertyDictionary`1 environmentProperties, ILoggingService loggingService, IItemFactory`2 itemFactory, IToolsetProvider toolsetProvider, ProjectRootElementCache projectRootElementCache, BuildEventContext buildEventContext, ISdkResolverService sdkResolverService, Int32 submissionId, EvaluationContext evaluationContext) at Microsoft.Build.Evaluation.Project.Reevaluate(ILoggingService loggingServiceForEvaluation, ProjectLoadSettings loadSettings, EvaluationContext evaluationContext) at Microsoft.Build.Evaluation.Project.ReevaluateIfNecessary(ILoggingService loggingServiceForEvaluation, ProjectLoadSettings loadSettings, EvaluationContext evaluationContext) at Microsoft.Build.Evaluation.Project.Initialize(IDictionary`2 globalProperties, String toolsVersion, String subToolsetVersion, ProjectLoadSettings loadSettings, EvaluationContext evaluationContext) at Microsoft.Build.Evaluation.Project..ctor(String projectFile, IDictionary`2 globalProperties, String toolsVersion, String subToolsetVersion, ProjectCollection projectCollection, ProjectLoadSettings loadSettings, EvaluationContext evaluationContext) at Microsoft.Build.Evaluation.Project..ctor(String projectFile, IDictionary`2 globalProperties, String toolsVersion, ProjectCollection projectCollection, ProjectLoadSettings loadSettings) at Intent.Modules.NuGet.Installer.NugetIntegration.CustomMsbuildProjectSystem.GetProject(String projectFile) in C:\Dev\Intent.Modules\Modules\Intent.Modules.NuGet.Installer\NugetIntegration\CustomMSBuildProjectSystem.cs:line 101 at Intent.Modules.NuGet.Installer.ReImplementations.MSBuildProjectSystem..ctor(String msbuildDirectory, String projectFullPath, INuGetProjectContext projectContext, Boolean ignoreMissingImports) in C:\Dev\Intent.Modules\Modules\Intent.Modules.NuGet.Installer\ReImplementations\MSBuildProjectSystem.cs:line 34 at Intent.Modules.NuGet.Installer.NugetIntegration.CustomMsbuildProjectSystem..ctor(String projectFullPath, INuGetProjectContext projectContext, Boolean ignoreMissingImports) in C:\Dev\Intent.Modules\Modules\Intent.Modules.NuGet.Installer\NugetIntegration\CustomMSBuildProjectSystem.cs:line 17 at Intent.Modules.NuGet.Installer.NugetIntegration.NugetServices.GetProject(String project, ICanAddFileStrategy canAddFileStrategy) in C:\Dev\Intent.Modules\Modules\Intent.Modules.NuGet.Installer\NugetIntegration\NugetServices.cs:line 471 at Intent.Modules.NuGet.Installer.NugetIntegration.NugetServices.GetInstalled(String project) in C:\Dev\Intent.Modules\Modules\Intent.Modules.NuGet.Installer\NugetIntegration\NugetServices.cs:line 381 at Intent.Modules.NuGet.Installer.Managers.NugetManager.LoadMsbuildProject(String project) in C:\Dev\Intent.Modules\Modules\Intent.Modules.NuGet.Installer\Managers\NugetManager.cs:line 298 at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext() at System.Linq.Enumerable.WhereEnumerableIterator`1.MoveNext() at System.Collections.Generic.List`1.InsertRange(Int32 index, IEnumerable`1 collection) at System.Collections.Generic.List`1.AddRange(IEnumerable`1 collection) at Intent.Modules.NuGet.Installer.Managers.NugetManager.LoadMsbuildProjects(String solutionFilePath, IEnumerable`1 additionalProjectFilePaths) in C:\Dev\Intent.Modules\Modules\Intent.Modules.NuGet.Installer\Managers\NugetManager.cs:line 274 at Intent.Modules.NuGet.Installer.Managers.NugetManager..ctor(String solutionFilePath, ITracing tracing, NuGetManagerSettings settings, IEnumerable`1 projectFilePaths, IDictionary`2 canAddFileStrategies) in C:\Dev\Intent.Modules\Modules\Intent.Modules.NuGet.Installer\Managers\NugetManager.cs:line 54 at Intent.Modules.NuGet.Installer.NugetInstaller.InstallForNetFramework(String solutionPath, IEnumerable`1 applicableProjects, ITracing tracing) in C:\Dev\Intent.Modules\Modules\Intent.Modules.NuGet.Installer\NugetInstaller.cs:line 101 at Intent.Modules.NuGet.Installer.NugetInstaller.Run(IApplication application, ITracing tracing) in C:\Dev\Intent.Modules\Modules\Intent.Modules.NuGet.Installer\NugetInstaller.cs:line 81 at Intent.Modules.NuGet.Installer.NugetInstaller.OnStep(IApplication application, String step) in C:\Dev\Intent.Modules\Modules\Intent.Modules.NuGet.Installer\NugetInstaller.cs:line 62 at Intent.SoftwareFactory.ProcessOrchestration.<>c__DisplayClass19_0.<Process>b__11(IExecutionLifeCycle fe) at Intent.SoftwareFactory.FactoryExtensionHelper.ExtensionPoint[TImplements](String descritpion, Action`1 action) at Intent.SoftwareFactory.ProcessOrchestration.Process(String[] applicationIds) at Intent.SoftwareFactory.IntentManager.Run(String applicationIds) at Intent.SoftwareFactory.Factory.Run(ExecutionContext executionContext)

dandrejvv avatar Apr 10 '19 10:04 dandrejvv