Birçok .NET Core projesinde bir çözüm var. Ben projenin tüm Nuget güncellemelerini yaptım ve şimdi ben şu hataları olsun oluşturmaya çalıştığınızda (projelerin bazıları için - hepsi değil): yardımcı gibiydi neÇerçeve için çalışma zamanı hedefi bulamıyor .NETCoreApp = v1 bazı projeler için hedef çalışma zamanlarından biriyle uyumlu
Can not find runtime target for framework '.NETCoreApp,Version=v1.0' compatible with one of the target runtimes: 'win10-x64, win81-x64, win8-x64, win7-x64'. Possible causes:
1. The project has not been restored or restore failed - run `dotnet restore`
2. The project does not list one of 'win10-x64, win81-x64, win8-x64, win7-x64' in the 'runtimes' section.
3. You may be trying to publish a library, which is not supported. Use `dotnet pack` to distribute libraries.
burada Can not find runtime target for framework .NETCoreApp=v1 compatible with one of the target runtimes bulunan bir konu
Ben başarısız projelere aşağıdaki eklendi: sorunu çözmek gibiydi"runtimes": {
"win10-x64": { }
}
. Ama sorum şu, bu neden sadece bazı projelerde oluyordu? Hata vermeyen projeler, project.json
dosyalarında böyle bir çalışma zamanı tanımına sahip değildir.
Bu çalışma zamanı tanımı tam olarak ne anlama geliyor? linux veya mac gibi diğer os'da çalışma yeteneğimi nasıl etkiler?
sen değil bir çalışan proje ve biri için bir örnek project.json verebilir misiniz? – svick