2011-06-22 13 views
2

System.Data.SQLite source solutionを読み込む際に問題があります。 System.Data.SQLite.2010プロジェクトは空のようですが、実際にはファイルへの参照が含まれていません。しかし、プロジェクトファイルには次のような文字列が含まれています:プロジェクトが "プロジェクトのインポート"参照ファイル(System.Data.SQLiteソリューション)を表示しません

<Import Project="$(MSBuildProjectDirectory)\System.Data.SQLite.References.targets" /> 
<Import Project="$(MSBuildProjectDirectory)\System.Data.SQLite.Properties.targets" /> 
<Import Project="$(MSBuildProjectDirectory)\System.Data.SQLite.Files.targets" /> 

実際にはファイルへの参照が含まれています。しかし、それは私のVSによってこのImport Project命令が無視されるように見えます。私がやりたいことがありますか?または、プラグインをインストールする必要がありますか?ソリューションはVSから正常に構築されています。ファイルを参照したいので、ソースでより簡単にナビゲートできます。

+0

ガット最新かつSystem.Data.SQLite.2010とSystem.Data.SQLite.Module.2010両方のプロジェクトは、すべてのファイルが除外されてきました。私はファイルを(すべてプレゼントして)再読み込みに行ってきましたが、プロジェクトは混乱しており、まだビルドできません。 –

答えて

2

あなたはプラグインを紛失しておらず、VSはImportディレクティブを無視していません。インポートディレクティブは、プロジェクトをビルドするときに使用されます。

プロジェクトをビルドすると、正常に構築され、System.Data.SQLite * .csにあるすべてのクラスが作成されます。

「コア」フレームワークファイルを誤って変更するのを防ぐためにこれが行われた理由の1つと推測します。

あなたのソリューションフォルダにそれらのファイルをご覧になりたい方 -

  1. はメモ帳にSystem.Data.SQLite.Files.targetsSystem.Data.SQLite.2010.csprojを開きまたはお好みのエディタ
  2. コピーの両方ItemGroupノードとSystem.Data.SQLite.2010.csproj
  3. コメントアウト<Import Project="$(MSBuildProjectDirectory)\System.Data.SQLite.Files.targets" />に貼り付けると、csprojファイルを保存します。
  4. ソリューションファイルをもう一度開くか、既に開いている場合は、プロジェクトをリロードしてファイルを確認します。

は、ここに私のcsprojは、上記の変更後に見えるものです:

<?xml version="1.0" encoding="utf-8"?> 
<!-- 
* 
* System.Data.SQLite.2010.csproj - 
* 
* Written by Joe Mistachkin. 
* Released to the public domain, use at your own risk! 
* 
--> 
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0"> 
    <PropertyGroup> 
    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> 
    <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> 
    <ProductVersion>10.0.30319</ProductVersion> 
    <SchemaVersion>2.0</SchemaVersion> 
    <ProjectGuid>{AC139952-261A-4463-B6FA-AEBC25283A66}</ProjectGuid> 
    <OutputType>Library</OutputType> 
    <AppDesignerFolder>Properties</AppDesignerFolder> 
    <RootNamespace>System.Data.SQLite</RootNamespace> 
    <AssemblyName>System.Data.SQLite</AssemblyName> 
    <OldToolsVersion>3.5</OldToolsVersion> 
    <SQLiteNetDir>$(MSBuildProjectDirectory)\..</SQLiteNetDir> 
    <ConfigurationYear>2010</ConfigurationYear> 
    </PropertyGroup> 
    <Import Project="$(SQLiteNetDir)\SQLite.NET.Settings.targets" /> 
    <PropertyGroup Condition="'$(BinaryOutputPath)' != ''"> 
    <OutputPath>$(BinaryOutputPath)</OutputPath> 
    <DocumentationFile>$(BinaryOutputPath)System.Data.SQLite.xml</DocumentationFile> 
    </PropertyGroup> 
    <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> 
    <DebugSymbols>true</DebugSymbols> 
    <DebugType>full</DebugType> 
    <Optimize>false</Optimize> 
    <DefineConstants>DEBUG;TRACE</DefineConstants> 
    <ErrorReport>prompt</ErrorReport> 
    </PropertyGroup> 
    <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> 
    <DebugType>pdbonly</DebugType> 
    <Optimize>true</Optimize> 
    <DefineConstants>TRACE</DefineConstants> 
    <ErrorReport>prompt</ErrorReport> 
    </PropertyGroup> 
    <Import Project="$(MSBuildProjectDirectory)\System.Data.SQLite.References.targets" /> 
    <Import Project="$(MSBuildProjectDirectory)\System.Data.SQLite.Properties.targets" /> 
    <!--<Import Project="$(MSBuildProjectDirectory)\System.Data.SQLite.Files.targets" />--> 
    <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" /> 
    <ItemGroup> 
    <Compile Include="AssemblyInfo.cs" /> 
    <Compile Include="SQLite3.cs" /> 
    <Compile Include="SQLite3_UTF16.cs" /> 
    <Compile Include="SQLiteBase.cs" /> 
    <Compile Include="SQLiteCommand.cs"> 
     <SubType>Component</SubType> 
    </Compile> 
    <Compile Include="SQLiteCommandBuilder.cs"> 
     <SubType>Component</SubType> 
    </Compile> 
    <Compile Include="SQLiteConnection.cs"> 
     <SubType>Component</SubType> 
    </Compile> 
    <Compile Include="SQLiteConnectionPool.cs" /> 
    <Compile Include="SQLiteConnectionStringBuilder.cs" /> 
    <Compile Include="SQLiteConvert.cs" /> 
    <Compile Include="SQLiteDataAdapter.cs"> 
     <SubType>Component</SubType> 
    </Compile> 
    <Compile Include="SQLiteDataReader.cs" /> 
    <Compile Include="SQLiteException.cs" /> 
    <Compile Include="SQLiteFactory.cs" /> 
    <Compile Include="SQLiteFunction.cs" /> 
    <Compile Include="SQLiteFunctionAttribute.cs" /> 
    <Compile Include="SQLiteKeyReader.cs" /> 
    <Compile Include="SQLiteMetaDataCollectionNames.cs" /> 
    <Compile Include="SQLiteParameter.cs" /> 
    <Compile Include="SQLiteParameterCollection.cs" /> 
    <Compile Include="SQLiteStatement.cs" /> 
    <Compile Include="SQLiteTransaction.cs" /> 
    <Compile Include="SR.Designer.cs"> 
     <DependentUpon>SR.resx</DependentUpon> 
     <AutoGen>True</AutoGen> 
     <DesignTime>True</DesignTime> 
    </Compile> 
    <Compile Include="UnsafeNativeMethods.cs" /> 
    <EmbeddedResource Include="SR.resx"> 
     <SubType>Designer</SubType> 
     <Generator>ResXFileCodeGenerator</Generator> 
     <LastGenOutput>SR.Designer.cs</LastGenOutput> 
    </EmbeddedResource> 
    </ItemGroup> 
    <ItemGroup Condition="'$(IsCompactFramework)' == 'false'"> 
    <Compile Include="SQLiteEnlistment.cs" /> 
    <Compile Include="LINQ\SQLiteConnection_Linq.cs"> 
     <SubType>Component</SubType> 
    </Compile> 
    <Compile Include="LINQ\SQLiteFactory_Linq.cs"> 
     <SubType>Code</SubType> 
    </Compile> 
    <EmbeddedResource Include="SQLiteCommand.bmp" /> 
    <EmbeddedResource Include="SQLiteConnection.bmp" /> 
    <EmbeddedResource Include="SQLiteDataAdapter.bmp" /> 
    </ItemGroup> 
    <!-- 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> 
    --> 
</Project> 
+0

私の望むような方法で問題を解決することはできませんが(提案された解決策はもちろん明らかです)、少なくとも私はVisual Studioのいくつかの機能が欠けていないことを知っています。 –

関連する問題