как указать клиентский или обычный профиль NET4 у приложения
От: Jack128  
Дата: 22.04.11 07:48
Оценка:
?



Warning 23 The referenced assembly "C:\Users\ESavin\Documents\Visual Studio 2010\Projects\ConsoleApplication6\ConsoleApplication6\bin\Debug\ConsoleApplication6.exe" could not be resolved because it has a dependency on "System.Runtime.Caching, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" which 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. ConsoleApplication1




в самом файле проекта никаких указаний, что это приложение под клиентский профиль нет:



  <PropertyGroup>
    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
    <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
    <ProductVersion>8.0.30703</ProductVersion>
    <SchemaVersion>2.0</SchemaVersion>
    <ProjectGuid>{fd9f50e2-4da9-46c4-9023-ad99a869c07c}</ProjectGuid>
    <OutputType>Exe</OutputType>
    <AppDesignerFolder>Properties</AppDesignerFolder>
    <RootNamespace>ConsoleApplication6</RootNamespace>
    <AssemblyName>ConsoleApplication6</AssemblyName>
    <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
    <FileAlignment>512</FileAlignment>
  </PropertyGroup>
Re: как указать клиентский или обычный профиль NET4 у прилож
От: VladD2 Российская Империя www.nemerle.org
Дата: 24.04.11 03:11
Оценка:
Здравствуйте, Jack128, Вы писали:

J>

J>Warning 23 The referenced assembly "C:\Users\ESavin\Documents\Visual Studio 2010\Projects\ConsoleApplication6\ConsoleApplication6\bin\Debug\ConsoleApplication6.exe" could not be resolved because it has a dependency on "System.Runtime.Caching, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" which 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. ConsoleApplication1


По-моему, тут отчетливо сказано, что нужно задать ссылку на другую сборку, так как эта принадлежит к не тому "профилю".
Есть логика намерений и логика обстоятельств, последняя всегда сильнее.
 
Подождите ...
Wait...
Пока на собственное сообщение не было ответов, его можно удалить.