Is it possible to reference a Shared project (.shrpoj) from a .Net core project (.xproj)?
I can't see a way, but I could be missing something.
Update
In case the link below stops working:
The alternative to shproj in .net core world is to add a compile
section to the buildOptions
section of the project.json
file.
For example:
"buildOptions": {
"compile": {
"include": [
"../../shared/**/*.cs"
]
}
}
It's not supported. Sorry. You can share the code though by including the code files in
project.json
Update
Here's how you include extra source files in a project: https://github.com/aspnet/MusicStore/blob/c83fbdbf127b95d8505b6a55010eb129f23e6530/src/MusicStore/project.json#L7-L12