Hello,
I have written one batch script to build my solution using below command:
call %MSBUILD% ResearchProjects.sln /p:OutDir=%BUILDTARGETROOT%\%BuildType%\%BuildTarget%\ /p:Configuration=%BUILDTYPE%
I am facing following issues while building RIC solution file using MSBuild command.
1. Error while building AssemblyInfo.cs file. error CS0579: Properties\AssemblyInfo.cs(11,12): attribute Duplicate 'AssemblyCompany'
"E:\Depot\ScholarlyPub\RIC\product\main\ResearchInformationCenter.ApplicationDataBlock\ResearchInformationCenter.ApplicationDataBlock.csproj" (default target)
2. FATAL Error during build of Workflows Project:
"E:\Depot\ScholarlyPub\RIC\product\main\ResearchInformationCenter.Workflows\ResearchInformationCenter.Workflows.csproj" (default target) (4) ->
(WorkflowCompilation target) -> C:\Program Files\MSBuild\Microsoft\Windows Workflow Foundation\v3.5\Workflow.
Targets (127,5): error : #error: 'FATAL: Incorrect build environment.'
Issue one is related to duplicate values for the Assembly attributes, I even tried giving different values for attributes but still it didn’t work.
I have Visual Studio 2005 as well as 2008 on my dev(Build) machine.
Issue 1 arises, only after updating VS 2008 SP1, earlier this issue was not there.
Is this error related to .targets file like below?
C:\Program Files\MSBuild\Microsoft\Windows Workflow Foundation\v3.5\Workflow.Targets
It would be great If someone help me out to resolve this issue.
Thanks and Regards
Nasir Khan