continuous integration - Build .net standard 1.4 class library TFS 2015 on premise -


we building web api application xamarin forms app. included .net standard class library project use view models. idea being build out web api endpoints - publish updated class library our internal nuget server.

our ci failing. when check in code - getting build error (using tfs 2015 on premise). first error received

the default xml namespace of project must msbuild xml namespace. if project authored in msbuild 2003 format, please add xmlns="http://schemas.microsoft.com/developer/msbuild/2003" element. if project has been authored in old 1.0 or 1.2 format, please convert msbuild 2003 format.

so added xml namespace csproj

now this:

there no target in project.

which version of visual studio use? can build project locally vs or build msbuild in command line?

anyway, based on error message, seems related version of vs created project , msbuild version (new .csproj project format applied in vs 2017). can reference below threads troubleshoot issue:

for first error:

for second error:

  • visual studio 2010 project targets

    add following attribute project element:

    defaulttargets="buildtarget"

    that tell msbuild use target named "buildtarget" when build. next add following subelement project element (just before last line, has "</project>"):

    <target name="buildtarget"> <message text="build selected" importance="high"/> </target>

    then save file , close edit window. return solution explorer , right-click on solution , select "reload project". build project. should message "build selected" along output of build, in:


Comments

Popular posts from this blog

python Tkinter Capturing keyboard events save as one single string -

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

javascript - Z-index in d3.js -