none
Unable to read the project file 'BlogManager.csproj'

    Question

  • Here is the project that won't load from this MSDN article. Here is the download location.

    Visual Studio 2010 has no problem opening up BlogModel.cs into BlogModel.sln, the first text inserted below. But Visual Studio complains with the message One or more projects in the solution were not loaded correctly. The output window indicates.D:\BlogModel\BlogManager\BlogManager.csproj : error  : Unable to read the project file 'BlogManager.csproj'.

    The offending csproject is listed at bottom. Thank you for any ideas!  Greg

    Microsoft Visual Studio Solution File, Format Version 11.00
    
    # Visual Studio 2010
    
    Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BlogModel", "BlogModel\BlogModel.csproj", "{A3ABD179-C1A2-43E0-B3EC-C0F835CC03FE}"
    
    EndProject
    
    Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BlogManager", "BlogManager\BlogManager.csproj", "{DF5C5712-9A6A-4258-B0BD-A0311FE4DECE}"
    
    EndProject
    <?xml version="1.0" encoding="utf-8"?>
    
    <Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
    
     <PropertyGroup>
    
     <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
    
     <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
    
     <ProductVersion>8.0.50727</ProductVersion>
    
     <SchemaVersion>2.0</SchemaVersion>
    
     <ProjectGuid>{DF5C5712-9A6A-4258-B0BD-A0311FE4DECE}</ProjectGuid>
    
     <ProjectTypeGuids>{A1591282-1198-4647-A2B1-27E5FF5F6F3B};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</ProjectTypeGuids>
    
     <OutputType>Library</OutputType>
    
     <AppDesignerFolder>Properties</AppDesignerFolder>
    
     <RootNamespace>BlogManager</RootNamespace>
    
     <AssemblyName>BlogManager</AssemblyName>
    
     <TargetFrameworkIdentifier>Silverlight</TargetFrameworkIdentifier>
    
     <TargetFrameworkVersion>v3.0</TargetFrameworkVersion>
    
     <SilverlightVersion>$(TargetFrameworkVersion)</SilverlightVersion>
    
     <SilverlightApplication>true</SilverlightApplication>
    
     <SupportedCultures>
    
     </SupportedCultures>
    
     <XapOutputs>true</XapOutputs>
    
     <GenerateSilverlightManifest>true</GenerateSilverlightManifest>
    
     <XapFilename>BlogManager.xap</XapFilename>
    
     <SilverlightManifestTemplate>Properties\AppManifest.xml</SilverlightManifestTemplate>
    
     <SilverlightAppEntry>BlogManager.App</SilverlightAppEntry>
    
     <TestPageFileName>BlogManagerTestPage.html</TestPageFileName>
    
     <CreateTestPage>true</CreateTestPage>
    
     <ValidateXaml>true</ValidateXaml>
    
     <EnableOutOfBrowser>false</EnableOutOfBrowser>
    
     <OutOfBrowserSettingsFile>Properties\OutOfBrowserSettings.xml</OutOfBrowserSettingsFile>
    
     <UsePlatformExtensions>false</UsePlatformExtensions>
    
     <ThrowErrorsInValidation>true</ThrowErrorsInValidation>
    
     <LinkedServerProject>
    
     </LinkedServerProject>
    
     </PropertyGroup>
    
     <!-- This property group is only here to support building this project using the 
    
      MSBuild 3.5 toolset. In order to work correctly with this older toolset, it needs 
    
      to set the TargetFrameworkVersion to v3.5 -->
    
     <PropertyGroup Condition="'$(MSBuildToolsVersion)' == '3.5'">
    
     <TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
    
     </PropertyGroup>
    
     <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
    
     <DebugSymbols>true</DebugSymbols>
    
     <DebugType>full</DebugType>
    
     <Optimize>false</Optimize>
    
     <OutputPath>Bin\Debug</OutputPath>
    
     <DefineConstants>DEBUG;TRACE;SILVERLIGHT</DefineConstants>
    
     <NoStdLib>true</NoStdLib>
    
     <NoConfig>true</NoConfig>
    
     <ErrorReport>prompt</ErrorReport>
    
     <WarningLevel>4</WarningLevel>
    
     </PropertyGroup>
    
     <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
    
     <DebugType>pdbonly</DebugType>
    
     <Optimize>true</Optimize>
    
     <OutputPath>Bin\Release</OutputPath>
    
     <DefineConstants>TRACE;SILVERLIGHT</DefineConstants>
    
     <NoStdLib>true</NoStdLib>
    
     <NoConfig>true</NoConfig>
    
     <ErrorReport>prompt</ErrorReport>
    
     <WarningLevel>4</WarningLevel>
    
     </PropertyGroup>
    
     <ItemGroup>
    
     <Reference Include="mscorlib" />
    
     <Reference Include="System.ComponentModel.DataAnnotations, Version=2.0.5.0, Culture=neutral, PublicKeyToken=ddd0da4d3e678217" />
    
     <Reference Include="System.Data.Services.Client, Version=2.0.5.0, Culture=neutral, processorArchitecture=MSIL" />
    
     <Reference Include="System.Runtime.Serialization" />
    
     <Reference Include="System.ServiceModel" />
    
     <Reference Include="System.Windows" />
    
     <Reference Include="system" />
    
     <Reference Include="System.Core" />
    
     <Reference Include="System.Net" />
    
     <Reference Include="System.Windows.Controls, Version=2.0.5.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL" />
    
     <Reference Include="System.Windows.Controls.Data, Version=2.0.5.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL" />
    
     <Reference Include="System.Windows.Controls.Data.Input, Version=2.0.5.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
    
     <Reference Include="System.Xml" />
    
     <Reference Include="System.Windows.Browser" />
    
     </ItemGroup>
    
     <ItemGroup>
    
     <Compile Include="App.xaml.cs">
    
      <DependentUpon>App.xaml</DependentUpon>
    
     </Compile>
    
     <Compile Include="MainPage.xaml.cs">
    
      <DependentUpon>MainPage.xaml</DependentUpon>
    
     </Compile>
    
     <Compile Include="Properties\AssemblyInfo.cs" />
    
     <Compile Include="Service References\BlogService\Reference.cs">
    
      <AutoGen>True</AutoGen>
    
      <DesignTime>True</DesignTime>
    
      <DependentUpon>Reference.datasvcmap</DependentUpon>
    
     </Compile>
    
     </ItemGroup>
    
     <ItemGroup>
    
     <ApplicationDefinition Include="App.xaml">
    
      <SubType>Designer</SubType>
    
      <Generator>MSBuild:Compile</Generator>
    
     </ApplicationDefinition>
    
     <Page Include="MainPage.xaml">
    
      <SubType>Designer</SubType>
    
      <Generator>MSBuild:Compile</Generator>
    
     </Page>
    
     </ItemGroup>
    
     <ItemGroup>
    
     <None Include="Properties\AppManifest.xml" />
    
     <None Include="Service References\BlogService\service.edmx" />
    
     </ItemGroup>
    
     <ItemGroup>
    
     <WCFMetadata Include="Service References\" />
    
     </ItemGroup>
    
     <ItemGroup>
    
     <ServiceReferenceMetadataStorage Include="Service References\BlogService\">
    
      <Type>datasvcmap</Type>
    
     </ServiceReferenceMetadataStorage>
    
     </ItemGroup>
    
     <ItemGroup>
    
     <None Include="Service References\BlogService\Reference.datasvcmap">
    
      <Generator>DataServiceClientGenerator</Generator>
    
      <LastGenOutput>Reference.cs</LastGenOutput>
    
     </None>
    
     </ItemGroup>
    
     <Import Project="$(MSBuildExtensionsPath32)\Microsoft\Silverlight\$(SilverlightVersion)\Microsoft.Silverlight.CSharp.targets" />
    
     <!-- To modify your build process, add your task inside one of the targets below and uncomment it. 
    
      Other similar extension points exist, see Microsoft.Common.targets.
    
     <Target Name="BeforeBuild">
    
     </Target>
    
     <Target Name="AfterBuild">
    
     </Target>
    
     -->
    
     <ProjectExtensions>
    
     <VisualStudio>
    
      <FlavorProperties GUID="{A1591282-1198-4647-A2B1-27E5FF5F6F3B}">
    
      <SilverlightProjectProperties />
    
      </FlavorProperties>
    
     </VisualStudio>
    
     </ProjectExtensions>
    
    </Project>
    • Moved by YiChun Chen Friday, April 23, 2010 8:27 AM ADO.NET issue (From:Visual Studio Setup and Installation)
    • Edited by hazz Friday, April 23, 2010 3:02 PM
    Thursday, April 22, 2010 1:34 PM

Answers

  • I had the answer right in front of me. I removed Silverlight 3 from my computer !!!!

    D:\BlogModel\BlogManager\BlogManager.csproj(120,3): The imported project "C:\Program Files\MSBuild\Microsoft\Silverlight\v3.0\Microsoft.Silverlight.CSharp.targets" was not found.

    btw. ADO.NET/Linq had nothing to do with the actual problem. The project/solution containing the problem, happened by coincidence to be that type of project but the problem was a Visual Studio/Silverlight Version issue. I missed the output message somehow. My bad!

    • Marked as answer by hazz Saturday, April 24, 2010 9:28 PM
    Friday, April 23, 2010 2:58 PM

All replies

  • Hi Hazz,

    I am moving this thread from Base "Visual Studio Setup and Installation" forum to the "ADO.NET Entity Framework and LINQ to Entities" forum, since the issue is related to ADO.NET Entity Framework. There are more experts in the "ADO.NET Entity Framework and LINQ to Entities" forum.

    Thanks

    Best regards,
    Yichun Chen


    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
    Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.
    Friday, April 23, 2010 8:27 AM
  • I had the answer right in front of me. I removed Silverlight 3 from my computer !!!!

    D:\BlogModel\BlogManager\BlogManager.csproj(120,3): The imported project "C:\Program Files\MSBuild\Microsoft\Silverlight\v3.0\Microsoft.Silverlight.CSharp.targets" was not found.

    btw. ADO.NET/Linq had nothing to do with the actual problem. The project/solution containing the problem, happened by coincidence to be that type of project but the problem was a Visual Studio/Silverlight Version issue. I missed the output message somehow. My bad!

    • Marked as answer by hazz Saturday, April 24, 2010 9:28 PM
    Friday, April 23, 2010 2:58 PM
  • Hi hazz,

     

    Glad to hear that the problem has been solved.   The root cause is missing Silverlight 3.0 on your machine, right?   Thanks for sharing it.   BTW, although the root cause is not related to EF, I think it is beneficial to the EF users, because I believe many customers using EF4 may download the sample projects you are working on.   J  

     

    Thanks again!

     

    Have a nice day!

     

     

    Best Regards,
    Lingzhi Sun

    MSDN Subscriber Support in Forum

    If you have any feedback on our support, please contact msdnmg@microsoft.com


    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
    Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.
    Monday, April 26, 2010 7:26 AM
    Moderator
  • Here is another solution which worked well for me:

    Under the MSBuild folder, there should be a folder for v3.0 but not v3.5 for Silverlight
    Install the latest Silverlight 3 SDK from: http://go.microsoft.com/fwlink/?LinkID=157102 to create this folder and populate with the correct build tasks.

    You can create RIA Services app for for Silverlight 3 on VS2008 or for Silverlight 4 on VS2010 Beta 2
    for more info pls visit here:
    Regards
    Raj Gupta

    Raj
    Wednesday, October 20, 2010 9:20 AM