2011-10-08 18 views
10

.NET'i 3.5 - 4.0 sürümüne güncellemeden, ancak System.Web derlemesini güncelleştirdikten sonra artık çalışmıyor. iyi çalışıyor 3.5 sürümünü kullanarakSystem.Web derlemesi bulunamadı .net 4.0 sürümü

Warning 1 Could not resolve assembly "System.Web". The assembly is not in the currently targeted framework ".NETFramework,Version=v4.0,Profile=Client". Please remove references to assemblies not in the targeted framework or consider retargeting your project.

:

aşağıdaki hatayı alıyorum. Bunu nasıl düzeltebilirim?

+1

İstemci sürümünü değil, tam sürümü hedefleyin. –

cevap

17

Değişim tam NET 4,0

The .NET Framework 4 Client Profile is a subset of the .NET Framework 4 that is optimized for client applications. It provides functionality for most client applications, including Windows Presentation Foundation (WPF), Windows Forms, Windows Communication Foundation (WCF), and ClickOnce features. This enables faster deployment and a smaller install package for applications that target the .NET Framework 4 Client Profile.

için ClientProfile gelen proje Differences between Microsoft .NET 4.0 full Framework and Client Profile

Bkz -> Uygulama sekmesi - Tam .net 4.0 geçin System.Web

Proje Özellikleri ulaşmak için

15

Hedef çerçeve için .NET 4.0 Client profile seçildiğini düşünüyorum. Sadece .Net 4.0

enter image description here

5

masaüstü kullanıcıları için bir .net "lite" dir .net 4.0 İstemci Profili, hedefleme ediyoruz geçin. > Hedef Çerçeve

4

".NET Framework 4 İstemci Profili" yerine ".NET Framework 4" olmak için "Hedef Çerçeveyi" değiştirmeyi deneyin.

İlgili konular