Getting Framework related error when trying to build a .net solution using MSBUILD plugin via Jenkins -


i trying create build using msbuild via jenkins .  installed msbuild plugin , configured path of same .i got below error when tried build , installed framework 4.5 in jenkins server .

c:\windows\microsoft.net\framework\v4.0.30319\microsoft.common.targets(983,5): warning msb3644: reference assemblies framework ".netframework,version=v4.5" not found. resolve this, install sdk or targeting pack framework version or retarget application version of framework have sdk or targeting pack installed. note assemblies resolved global assembly cache (gac) , used in place of reference assemblies. therefore assembly may not correctly targeted framework intend. [c:\jenkins\jobs\job1\workspace\proj1\sample.csproj]

when build again . got same error .

while configuring msbuild plugin in jenkins need provide path of msbuild.exe . path change when framework 4.5 installed . ????

appreciate suggestion .

thanks

bala

did try adding target framework version in msbuild target?

<target name="build-solution">      <echo message="compiling ${project.name} application" />     <property name="failure.reason" value="build-solution" />     <exec program="${msbuild}">         <arg value="${solution.name}" />         <arg value="/verbosity:minimal" />         <arg value="/property:configuration=release" />         <arg value="/property:targetframeworkversion=v4.5.2" />         <arg value="/t:rebuild" />     </exec> </target>    

Comments

Popular posts from this blog

asynchronous - C# WinSCP .NET assembly: How to upload multiple files asynchronously -

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -