How can we add a source file from .Net Core project in a .NET project? -


i have little problem ! have 2 projects, 1 on .net core , 1 on .net. need use source file .net core project can't add reference project because of framework version.

is possible add reference files without copying them in project ?

thanks !

you need refer netstandard documentation here : https://docs.microsoft.com/en-us/dotnet/standard/net-standard

for example, if target netstandard1.3 can use .net core library on .net framework 4.6 , above.

try lower down netstandard version of .net core project compatible .net framework project.

in general, recommend target lowest version of .net standard possible. so, after find highest .net standard version can target, follow these steps:

  1. target next lower version of .net standard , build project.
  2. if project builds successfully, repeat step 1. otherwise, retarget next higher version , that's version should use.

Comments

Popular posts from this blog

vue.js - Create hooks for automated testing -

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

serial port - hub4com OVERRUN Error -