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:
- target next lower version of .net standard , build project.
- if project builds successfully, repeat step 1. otherwise, retarget next higher version , that's version should use.
Comments
Post a Comment