.net - Build NET Framework project that references NETStandard project with Cake build -


i have 2 projects: stdlib netstandard 2.0 class library , console.framework .net framework 4.6.1 project. console application references class library.

i try build solution using cake build. use dotnetbuild method (link) , output:

building projects in solution 1 @ time. enable parallel build, please add "/m" switch. build started 9/12/2017 2:35:55 pm. project "c:\projects\netstdexample\netstdexample.sln" on node 1 (build target(s)). validatesolutionconfiguration: building solution configuration "debug|any cpu". project "c:\projects\netstdexample\netstdexample.sln" (1) building "c:\projects\netstdexample\netstdexample.stdlib\netstdexample.stdlib.csproj" (2) on node 1 (default targets). c:\projects\netstdexample\netstdexample.stdlib\netstdexample.stdlib.csproj(1,1): error msb4041: 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" <project> element. if project has been authored in old 1.0 or 1.2 format, please convert ms build 2003 format. done building project "c:\projects\netstdexample\netstdexample.stdlib\netstdexample.stdlib.csproj" (default targets) -- failed.

is there way how build kind of project using cake?

the dotnetbuild alias older alias, makes informed decision whether build:

the specified solution using msbuild or xbuild.

i.e. @ type of machine build running on, , either run msbuild or xbuild.

from sounds of question, doesn't sound want. instead, think after dotnetcore aliases:

https://www.cakebuild.net/api/cake.common.tools.dotnetcore/dotnetcorealiases/

i.e. can like:

dotnetcorebuild(buildparameters.solutionfilepath.fullpath); 

to build specified solution using dotnet cli.

it dotnetbuild alias obsoleted @ point.


Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -