3小时的谷歌搜索,我仍然无法找到答案 我也试过这个:Package [some package] is not compatible with netcoreapp1.0 仍然无法正常工作,我甚至在导入时添加了net45和net40参考。另一个是问题是我的MVC核心项目可是没有一个的package.jsonnetcoreapp1.0不兼容net45
0
A
回答
2
因为你可能正在使用VS2017,你不会有一个project.json,因为它不存在任何更长的时间。所以,做下面的事情会让你有希望成为一个工作项目。
<PropertyGroup>
<TargetFramework>net452</TargetFramework>
<RuntimeIdentifier>win7-x86</RuntimeIdentifier>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.ApplicationInsights.AspNetCore" Version="2.0.0" />
<PackageReference Include="Microsoft.AspNet.SignalR.Core" Version="2.2.1" />
<PackageReference Include="Microsoft.AspNetCore" Version="1.1.1" />
<PackageReference Include="Microsoft.AspNetCore.Mvc" Version="1.1.2" />
<PackageReference Include="Microsoft.AspNetCore.Owin" Version="1.1.1" />
<PackageReference Include="Microsoft.AspNetCore.StaticFiles" Version="1.1.1" />
<PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="1.1.1" />
<PackageReference Include="Microsoft.VisualStudio.Web.BrowserLink" Version="1.1.0" />
</ItemGroup>
<ItemGroup>
<DotNetCliToolReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Tools" Version="1.0.0" />
</ItemGroup>
右键单击您的项目文件编辑.csproj
,然后remove and replace the <propertygroup> </propertygroup>
和它的内容。现在应该参考信号包。不幸的乐趣,你必须创建自己的中间件将它绑到核心框架..
https://www.codeproject.com/Articles/1115941/ASP-NET-Core-Building-a-Real-Time-Online-Poll-Syst
我确实创造了中间件非常快,它并编译。不管它是否有效,我还没有得到那么多。请记住,链接引用VS2017和项目的.csproj文件之前的真正旧东西。
希望有帮助。
相关问题
- 1. System.Numerics当瞄准net45
- 2. Xamarin.iOS不兼容
- 3. 不兼容pointertypes
- 4. NETStandard 1.3 NetCoreApp1.0
- 5. 声明不兼容
- 6. Objective C不兼容
- 7. Android AVD不兼容
- 8. MVC包不兼容
- 9. 不兼容类型
- 10. JBOSS不兼容gwt2.3
- 11. 类型不兼容
- 12. AS3库不兼容
- 13. CXF与.Net不兼容?
- 14. zclip&twitter bootstrap:不兼容?
- 15. 排序与IE不兼容?
- 16. request.setAttribute与chain.doFilter不兼容
- 17. FileAge与“c:\ pagefile.sys”不兼容
- 18. uniqueidentifier与int error不兼容
- 19. 不兼容性:org.codehaus.plexus。 .exception.ComponentLookupException
- 20. WxPython与OS X不兼容?
- 21. Stream Audio与Avplayer不兼容
- 22. InputStream和URL不兼容
- 23. Magento API版本不兼容
- 24. CXF与WebSphere JRE不兼容
- 25. Docker-compose和Xvfb不兼容?
- 26. @Scheduled与Javaconfig不兼容
- 27. Syntastic与eslint不兼容
- 28. XACT_ABORT关闭ACID不兼容?
- 29. Range.find与excel VBA不兼容
- 30. BufferedImage TYPE_INT_RGB与Mat不兼容?
谢谢!我也加了net40和net451让它顺便工作 – anaval