-
Notifications
You must be signed in to change notification settings - Fork 224
project.json targeting net20 and net35 #1894
Comments
What's the plan here? I'd like to switch over to project.json. It would simplify my build scripts, reduce the likely-hood of errors such as JamesNK/Newtonsoft.Json#618 and I could improve the features offered by Json.NET on vnext by using IL gen instead of expression trees for reflection. Before you ask, I don't want to ditch net20 and net35. People do use them, and other packages depend on them. Glimpse for example is net35. Dapper also has old .NET builds and is waiting on this support - DapperLib/Dapper#241 |
I think we can do this. It's just a matter of expanding our set of known frameworks and reference assembly folders. I'll leave it to @muratg to schedule, but we can try to do it in beta7. It may not make it, but I think it'll be fairly straightforward so I'm OK trying to take it on for b7. |
@muratg Will this make beta 7? 😄 |
We should be able to do this for beta8, it should just be a matter of searching the correct GAC paths. If it turns out to be more work, I'll circle back to this thread for an update. |
Can you point me towards instructions for getting this before beta 8? |
It should be on the |
Bug: System.Data.Entity (and other 3.5 references) resolves in .NET 2.0 when it should fail. Name: fx/System.Data.Entity
|
That's a valid issue. Is it blocking your scenario? I would assume that if it is supposed to fail you can unblock yourself by just not referencing it :). Can you file an issue about it? The problem is that we're resolving out of the GAC as well as the Framework Reference Assemblies and aren't checking the GAC reference to see if it is compatible. |
It's not blocking. |
Overall it appears to be working pretty well. Xunit is giving me an exception with the latest DNX build. Is that expected? |
You need to use the new xunit runner on their myget to use beta8 |
I am attempting to use project.json to compile Json.NET and I discovered the framework targets net20 and net35 currently don't work. The assemblies referenced for those targets are always .NET 4.0.
project.json:
C:\Windows\Microsoft.NET\assembly\GAC_MSIL\System\v4.0_4.0.0.0__b77a5c561934e089\System.dll
Class library targeting .NET 2.0:
C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.dll
Also there are automatic references to assemblies that don't exist in .NET 2.0 like System.Core.dll
This is blocking me using project.json to compile all of Json.NET
The text was updated successfully, but these errors were encountered: