A common class library consumed by both .NET Core and .Net 4.5.2

前端 未结 2 2174
礼貌的吻别
礼貌的吻别 2021-02-13 15:31

I\'m fairly new to .Net Core, but have made a working Asp.Net Core WebAPI site - now I want to share some code with another project...

  • I have Visual Studio 2015 wi
2条回答
  •  我在风中等你
    2021-02-13 15:54

    The only way I have found to make this work, is to hack reference the .csproj file of the Client library: https://github.com/JonnyWideFoot/netcore-prototype/blob/master/src/JE.API.Experiment.Client/JE.API.Experiment.Client.csproj

    False ..\JE.Api.Experiment.Contract\bin\$(Configuration)\net452\JE.Api.Experiment.Contract.dll

    By hard-coding the path to the correct output folder from the contracts library, all is fine.

    ... thinking this could be a bug in visual studio.

提交回复
热议问题