Can't build vnext project

I'm trying to develop an application using vNext (August CTP plus Linq May CTP), but I get this error:

Error 2 The type 'System.Query.IQueryable`1<T0>' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Query, Version=1.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. c:\Program Files\Microsoft SDKs\ADO.NET vNext CTP\Reference\System.Data.Entity.dll

plus another similar error.

but the reference is correctly added.

I'm using Windows Vista 5536, I installed Linq May CTP then Ado.net August CTP.

Edit: this is the project file:

<ProjectDefaultTargets="Build"xmlns="http://schemas.microsoft.com/developer/msbuild/2003">

<PropertyGroup>

<ConfigurationCondition=" '$(Configuration)' == ''">Debug</Configuration>

<PlatformCondition=" '$(Platform)' == ''">AnyCPU</Platform>

<ProductVersion>8.0.50727</ProductVersion>

<SchemaVersion>2.0</SchemaVersion>

<ProjectGuid>{B2C60164-5C6C-452C-96D7-3E869D5AB5AD}</ProjectGuid>

<OutputType>Library</OutputType>

<AppDesignerFolder>Properties</AppDesignerFolder>

<RootNamespace>Entities</RootNamespace>

<AssemblyName>Entities</AssemblyName>

</PropertyGroup>

<PropertyGroupCondition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU'">

<DebugSymbols>true</DebugSymbols>

<DebugType>full</DebugType>

<Optimize>false</Optimize>

<OutputPath>bin\Debug\</OutputPath>

<DefineConstants>DEBUG;TRACE</DefineConstants>

<ErrorReport>prompt</ErrorReport>

<WarningLevel>4</WarningLevel>

</PropertyGroup>

<PropertyGroupCondition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU'">

<DebugType>pdbonly</DebugType>

<Optimize>true</Optimize>

<OutputPath>bin\Release\</OutputPath>

<DefineConstants>TRACE</DefineConstants>

<ErrorReport>prompt</ErrorReport>

<WarningLevel>4</WarningLevel>

</PropertyGroup>

<ItemGroup>

<ReferenceInclude="System" />

<ReferenceInclude="System.Data.CTP, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, processorArchitecture=x86" />

<ReferenceInclude="System.Data.DLinq, Version=1.0.2319.19044, Culture=neutral, processorArchitecture=MSIL" />

<ReferenceInclude="System.Data.Entity, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, processorArchitecture=x86" />

<ReferenceInclude="System.Query, Version=1.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL">

<SpecificVersion>True</SpecificVersion>

<HintPath>$(ProgramFiles)\Microsoft SDKs\ADO.NET vNext CTP\Bin\System.Query.dll</HintPath>

</Reference>

<ReferenceInclude="System.Xml" />

</ItemGroup>

<ItemGroup>

<SchemaSourceInclude="Entities.Model.csdl" />

<CompileInclude="DLinqObjects1.cs">

<AutoGen>True</AutoGen>

<DesignTime>True</DesignTime>

<DependentUpon>DLinqObjects1.dlinq</DependentUpon>

</Compile>

<CompileInclude="Entities.cs" />

<CompileInclude="Properties\AssemblyInfo.cs" />

<CompileInclude="Properties\Settings.Designer.cs">

<AutoGen>True</AutoGen>

<DesignTimeSharedInput>True</DesignTimeSharedInput>

<DependentUpon>Settings.settings</DependentUpon>

</Compile>

</ItemGroup>

<ItemGroup>

<NoneInclude="App.Config" />

<NoneInclude="DLinqObjects1.dlinq">

<Generator>MSDLinqGenerator</Generator>

<LastGenOutput>DLinqObjects1.cs</LastGenOutput>

</None>

<NoneInclude="Entities.Model.csdl">

<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>

<InProject>false</InProject>

</None>

<NoneInclude="Entities.cs.msl">

<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>

</None>

<NoneInclude="Entities.Target.ssdl">

<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>

</None>

<NoneInclude="Properties\Settings.settings">

<Generator>SettingsSingleFileGenerator</Generator>

<LastGenOutput>Settings.Designer.cs</LastGenOutput>

</None>

</ItemGroup>

<ImportProject="$(ProgramFiles)\LINQ Preview\Misc\Linq.targets" />

<ImportProject="$(MSBuildExtensionsPath)\Microsoft\ADO.NET vNext CTP\Microsoft.EDM.targets" />

</Project>

Thanks

[16473 byte] By [cobain81] at [2008-2-24]
# 1

From looking at the project file, it seems that you have added a "DLinq Objects" project item to your project. Currently we don't support having both LINQ to SQL (DLinq) and LINQ to Entities in the same project. I would suggest to start another ADO.NET vNext project and don't add a DLinq Objects item.

Pablo Castro
ADO.NET Technical Lead
Microsoft Corporation

pablo-ms at 2007-10-7 > top of Msdn Tech,Visual Studio Orcas,ADO.NET Orcas...
# 2
Thanks
cobain81 at 2007-10-7 > top of Msdn Tech,Visual Studio Orcas,ADO.NET Orcas...

Visual Studio Orcas

Site Classified