Reputation: 345
I am using visual studio and I have a problem building my project. I am not sure how to fix it.
I am getting this error:
Error 289 The "CreateProjectReferenceDefineConstants" task was not found. Check the following: 1.) The name of the task in the project file is the same as the name of the task class. 2.) The task class is "public" and implements the Microsoft.Build.Framework.ITask interface. 3.) The task is correctly declared with <UsingTask> in the project file, or in the *.tasks files located in the "C:\Windows\Microsoft.NET\Framework\v4.0.30319" directory. C:\Program Files (x86)\MSBuild\Microsoft\WiX\v3.x\wix2010.targets 1279 6 ProcedureManagerSetup
I double click this error and this leads me to this chunk of code:
<Target
Name="AddProjectReferenceDefineConstants"
Condition=" '@(_ResolvedProjectReferencePaths)' != '' ">
<CreateProjectReferenceDefineConstants
ProjectReferencePaths="@(_ResolvedProjectReferencePaths)"
ProjectConfigurations="$(VSProjectConfigurations)">
<Output TaskParameter="DefineConstants" PropertyName="ProjectReferenceDefineConstants" />
</CreateProjectReferenceDefineConstants>
</Target>
It is specifically pointing to the line:
<CreateProjectReferenceDefineConstants
Ever since my windows 10 updated, this happened. I noticed though that before, it was using .NET 3.5 . After the update, It changed into .NET 4.0 . I am not sure if this is the main reason why this is happening but it is worth a mention.
Upvotes: 0
Views: 711
Reputation: 345
This solved my problem:
Upvotes: 1
Reputation: 440
You add follow key your registry.
Open regedit (You wrote regedit in Run inbox)
and you find HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\EventLog\Application folder
and you add new folder.
Your new folder name: “HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\EventLog\Application\ASP.NET 4.0.30319”
Upvotes: 0