none
项目无法选择Target framework RRS feed

  • 问题

  • Hi,

    在一个完整的项目中,类库项目可以通过右键属性选择framework版本,

    。但是我的web项目无法进行选择,并且我一旦按F5开始调试,VS就会崩溃。

    请问这个该如何解决?

    只要我编译就会出现以下错误。

    System.InvalidOperationException was unhandled
      Message=Could not resolve mscorlib for target framework '.NETFramework,Version=v3.5'.  This can happen if the target framework is not installed or if the framework moniker is incorrectly formatted.
      Source=Microsoft.VisualStudio.Shell.Design
      StackTrace:
           at Microsoft.VisualStudio.Shell.Design.VsTargetFrameworkUniverse..ctor(IDesignTimeAssemblyLoader assemblyLoader, IVsFrameworkMultiTargeting globalAssemblyResolution, String targetMoniker, IVsSmartOpenScope dispenser)
           at Microsoft.VisualStudio.Shell.Design.VsTargetFrameworkUniverse.GetUniverse(IDesignTimeAssemblyLoader assemblyLoader, IVsFrameworkMultiTargeting globalAssemblyResolution, String targetMoniker, IVsSmartOpenScope dispenser)
           at Microsoft.VisualStudio.Shell.Design.VsTargetFrameworkProvider..ctor(IVsFrameworkMultiTargeting targetInfo, IDesignTimeAssemblyLoader assemblyLoader, String targetMoniker, TypeDescriptionProvider parentProvider, IVsSmartOpenScope openScope)
           at Microsoft.Data.Entity.Design.VisualStudio.EdmUtils.GetEntityFrameworkVersion(Project project, IServiceProvider serviceProvider)
           at Microsoft.Data.Entity.Design.VisualStudio.Model.VSArtifact.get_SchemaVersion()
           at Microsoft.Data.Entity.Design.Model.Entity.ConceptualEntitySet.GetterAccessDefaultableValue..ctor(EFElement parent)
           at Microsoft.Data.Entity.Design.Model.Entity.ConceptualEntitySet.<get_Children>d__6.MoveNext()
           at Microsoft.Data.Entity.Design.Model.EFContainer.Dispose(Boolean disposing)
           at Microsoft.Data.Entity.Design.Model.EFNormalizableItem.Dispose(Boolean disposing)
           at Microsoft.Data.Entity.Design.Model.EFObject.Dispose()
           at Microsoft.Data.Entity.Design.Model.EFContainer.Dispose(Boolean disposing)
           at Microsoft.Data.Entity.Design.Model.EFNormalizableItem.Dispose(Boolean disposing)
           at Microsoft.Data.Entity.Design.Model.EFObject.Dispose()
           at Microsoft.Data.Entity.Design.Model.EFContainer.Dispose(Boolean disposing)
           at Microsoft.Data.Entity.Design.Model.EFNormalizableItem.Dispose(Boolean disposing)
           at Microsoft.Data.Entity.Design.Model.EFObject.Dispose()
           at Microsoft.Data.Entity.Design.Model.EntityDesignArtifact.Dispose(Boolean disposing)
           at Microsoft.Data.Entity.Design.VisualStudio.Model.VSArtifact.Dispose(Boolean disposing)
           at Microsoft.Data.Entity.Design.Model.EFObject.Dispose()
           at Microsoft.Data.Entity.Design.Model.ModelManager.Dispose(Boolean disposing)
           at Microsoft.Data.Entity.Design.VisualStudio.VisualStudioEdmxValidator.Finalize()
      InnerException: 

    Reactive Programming | Event Driven Architecture | CQRS With Domain Driven Design | Covariance and Contravariance in DOTNET

    • 已移动 ThankfulHeart 2012年4月5日 8:24 VS2010无法识别类库或者选择类库 (发件人:.NET Framework 一般性问题讨论区)
    2012年4月5日 8:05

全部回复

  • Hi,

    在一个完整的项目中,类库项目可以通过右键属性选择framework版本,

    。但是我的web项目无法进行选择,并且我一旦按F5开始调试,VS就会崩溃。

    请问这个该如何解决?

    只要我编译就会出现以下错误。

    System.InvalidOperationException was unhandled
      Message=Could not resolve mscorlib for target framework '.NETFramework,Version=v3.5'.  This can happen if the target framework is not installed or if the framework moniker is incorrectly formatted.
      Source=Microsoft.VisualStudio.Shell.Design
      StackTrace:
           at Microsoft.VisualStudio.Shell.Design.VsTargetFrameworkUniverse..ctor(IDesignTimeAssemblyLoader assemblyLoader, IVsFrameworkMultiTargeting globalAssemblyResolution, String targetMoniker, IVsSmartOpenScope dispenser)
           at Microsoft.VisualStudio.Shell.Design.VsTargetFrameworkUniverse.GetUniverse(IDesignTimeAssemblyLoader assemblyLoader, IVsFrameworkMultiTargeting globalAssemblyResolution, String targetMoniker, IVsSmartOpenScope dispenser)
           at Microsoft.VisualStudio.Shell.Design.VsTargetFrameworkProvider..ctor(IVsFrameworkMultiTargeting targetInfo, IDesignTimeAssemblyLoader assemblyLoader, String targetMoniker, TypeDescriptionProvider parentProvider, IVsSmartOpenScope openScope)
           at Microsoft.Data.Entity.Design.VisualStudio.EdmUtils.GetEntityFrameworkVersion(Project project, IServiceProvider serviceProvider)
           at Microsoft.Data.Entity.Design.VisualStudio.Model.VSArtifact.get_SchemaVersion()
           at Microsoft.Data.Entity.Design.Model.Entity.ConceptualEntitySet.GetterAccessDefaultableValue..ctor(EFElement parent)
           at Microsoft.Data.Entity.Design.Model.Entity.ConceptualEntitySet.<get_Children>d__6.MoveNext()
           at Microsoft.Data.Entity.Design.Model.EFContainer.Dispose(Boolean disposing)
           at Microsoft.Data.Entity.Design.Model.EFNormalizableItem.Dispose(Boolean disposing)
           at Microsoft.Data.Entity.Design.Model.EFObject.Dispose()
           at Microsoft.Data.Entity.Design.Model.EFContainer.Dispose(Boolean disposing)
           at Microsoft.Data.Entity.Design.Model.EFNormalizableItem.Dispose(Boolean disposing)
           at Microsoft.Data.Entity.Design.Model.EFObject.Dispose()
           at Microsoft.Data.Entity.Design.Model.EFContainer.Dispose(Boolean disposing)
           at Microsoft.Data.Entity.Design.Model.EFNormalizableItem.Dispose(Boolean disposing)
           at Microsoft.Data.Entity.Design.Model.EFObject.Dispose()
           at Microsoft.Data.Entity.Design.Model.EntityDesignArtifact.Dispose(Boolean disposing)
           at Microsoft.Data.Entity.Design.VisualStudio.Model.VSArtifact.Dispose(Boolean disposing)
           at Microsoft.Data.Entity.Design.Model.EFObject.Dispose()
           at Microsoft.Data.Entity.Design.Model.ModelManager.Dispose(Boolean disposing)
           at Microsoft.Data.Entity.Design.VisualStudio.VisualStudioEdmxValidator.Finalize()
      InnerException: 


    Reactive Programming | Event Driven Architecture | CQRS With Domain Driven Design | Covariance and Contravariance in DOTNET


    2012年4月5日 7:01
  • 你好

    或者你可以嘗試復修你的Visual Studio 或.Net Framework試試看

    Please correct me if my concept is wrong


    Chi

    2012年4月12日 19:30
    版主