/trunk/Community.CsharpSqlite.SQLiteClient.SL/Community.CsharpSqlite.SQLiteClient.SL.csproj |
@@ -0,0 +1,112 @@ |
<?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>{238EAD8B-B811-4FA6-8581-4CA4B816066D}</ProjectGuid> |
<ProjectTypeGuids>{A1591282-1198-4647-A2B1-27E5FF5F6F3B};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</ProjectTypeGuids> |
<OutputType>Library</OutputType> |
<AppDesignerFolder>Properties</AppDesignerFolder> |
<RootNamespace>Community.CsharpSqlite.SQLiteClient.SL</RootNamespace> |
<AssemblyName>Community.CsharpSqlite.SQLiteClient.SL</AssemblyName> |
<TargetFrameworkIdentifier>Silverlight</TargetFrameworkIdentifier> |
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion> |
<SilverlightVersion>$(TargetFrameworkVersion)</SilverlightVersion> |
<SilverlightApplication>false</SilverlightApplication> |
<ValidateXaml>true</ValidateXaml> |
<ThrowErrorsInValidation>true</ThrowErrorsInValidation> |
</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>TRACE;DEBUG;SQLITE_SILVERLIGHT SQLITE_HAS_CODEC NET_2_0</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;SQLITE_SILVERLIGHT</DefineConstants> |
<NoStdLib>true</NoStdLib> |
<NoConfig>true</NoConfig> |
<ErrorReport>prompt</ErrorReport> |
<WarningLevel>4</WarningLevel> |
</PropertyGroup> |
<ItemGroup> |
<Reference Include="mscorlib" /> |
<Reference Include="system" /> |
</ItemGroup> |
<ItemGroup> |
<Compile Include="..\Community.CsharpSqlite.SQLiteClient\src\SqliteCommand.cs"> |
<Link>src\SqliteCommand.cs</Link> |
<SubType>Code</SubType> |
</Compile> |
<Compile Include="..\Community.CsharpSqlite.SQLiteClient\src\SqliteConnection.cs"> |
<Link>src\SqliteConnection.cs</Link> |
<SubType>Code</SubType> |
</Compile> |
<Compile Include="..\Community.CsharpSqlite.SQLiteClient\src\SqliteDataReader.cs"> |
<Link>src\SqliteDataReader.cs</Link> |
<SubType>Code</SubType> |
</Compile> |
<Compile Include="..\Community.CsharpSqlite.SQLiteClient\src\SqliteError.cs"> |
<Link>src\SqliteError.cs</Link> |
<SubType>Code</SubType> |
</Compile> |
<Compile Include="..\Community.CsharpSqlite.SQLiteClient\src\SqliteExceptions.cs"> |
<Link>src\SqliteExceptions.cs</Link> |
<SubType>Code</SubType> |
</Compile> |
<Compile Include="..\Community.CsharpSqlite.SQLiteClient\src\SqliteParameter.cs"> |
<Link>src\SqliteParameter.cs</Link> |
<SubType>Code</SubType> |
</Compile> |
<Compile Include="..\Community.CsharpSqlite.SQLiteClient\src\SqliteParameterCollection.cs"> |
<Link>src\SqliteParameterCollection.cs</Link> |
<SubType>Code</SubType> |
</Compile> |
<Compile Include="..\Community.CsharpSqlite.SQLiteClient\src\SqliteTransaction.cs"> |
<Link>src\SqliteTransaction.cs</Link> |
<SubType>Code</SubType> |
</Compile> |
<Compile Include="Properties\AssemblyInfo.cs" /> |
</ItemGroup> |
<ItemGroup> |
<ProjectReference Include="..\Community.CsharpSqlite.Silverlight\Community.CsharpSqlite.Silverlight.csproj"> |
<Project>{A3AE849B-B668-4BC9-A75F-6E9B0A8F6779}</Project> |
<Name>Community.CsharpSqlite.Silverlight</Name> |
</ProjectReference> |
<ProjectReference Include="..\System.Data.Ersatz\Silverlight\System.Data.Ersatz.Silverlight.csproj"> |
<Project>{D7194231-DBAD-422B-819E-911037934F45}</Project> |
<Name>System.Data.Ersatz.Silverlight</Name> |
</ProjectReference> |
</ItemGroup> |
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\Silverlight\$(SilverlightVersion)\Microsoft.Silverlight.CSharp.targets" /> |
<ProjectExtensions> |
<VisualStudio> |
<FlavorProperties GUID="{A1591282-1198-4647-A2B1-27E5FF5F6F3B}"> |
<SilverlightProjectProperties /> |
</FlavorProperties> |
</VisualStudio> |
</ProjectExtensions> |
<!-- 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> |
/trunk/Community.CsharpSqlite.SQLiteClient.SL/Community.CsharpSqlite.SQLiteClient.SL.sln |
@@ -0,0 +1,32 @@ |
 |
Microsoft Visual Studio Solution File, Format Version 11.00 |
# Visual Studio 2010 |
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Community.CsharpSqlite.SQLiteClient.SL", "Community.CsharpSqlite.SQLiteClient.SL.csproj", "{238EAD8B-B811-4FA6-8581-4CA4B816066D}" |
EndProject |
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Community.CsharpSqlite.Silverlight", "..\Community.CsharpSqlite.Silverlight\Community.CsharpSqlite.Silverlight.csproj", "{A3AE849B-B668-4BC9-A75F-6E9B0A8F6779}" |
EndProject |
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "System.Data.Ersatz.Silverlight", "..\System.Data.Ersatz\Silverlight\System.Data.Ersatz.Silverlight.csproj", "{D7194231-DBAD-422B-819E-911037934F45}" |
EndProject |
Global |
GlobalSection(SolutionConfigurationPlatforms) = preSolution |
Debug|Any CPU = Debug|Any CPU |
Release|Any CPU = Release|Any CPU |
EndGlobalSection |
GlobalSection(ProjectConfigurationPlatforms) = postSolution |
{238EAD8B-B811-4FA6-8581-4CA4B816066D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU |
{238EAD8B-B811-4FA6-8581-4CA4B816066D}.Debug|Any CPU.Build.0 = Debug|Any CPU |
{238EAD8B-B811-4FA6-8581-4CA4B816066D}.Release|Any CPU.ActiveCfg = Release|Any CPU |
{238EAD8B-B811-4FA6-8581-4CA4B816066D}.Release|Any CPU.Build.0 = Release|Any CPU |
{A3AE849B-B668-4BC9-A75F-6E9B0A8F6779}.Debug|Any CPU.ActiveCfg = Debug|Any CPU |
{A3AE849B-B668-4BC9-A75F-6E9B0A8F6779}.Debug|Any CPU.Build.0 = Debug|Any CPU |
{A3AE849B-B668-4BC9-A75F-6E9B0A8F6779}.Release|Any CPU.ActiveCfg = Release|Any CPU |
{A3AE849B-B668-4BC9-A75F-6E9B0A8F6779}.Release|Any CPU.Build.0 = Release|Any CPU |
{D7194231-DBAD-422B-819E-911037934F45}.Debug|Any CPU.ActiveCfg = Debug|Any CPU |
{D7194231-DBAD-422B-819E-911037934F45}.Debug|Any CPU.Build.0 = Debug|Any CPU |
{D7194231-DBAD-422B-819E-911037934F45}.Release|Any CPU.ActiveCfg = Release|Any CPU |
{D7194231-DBAD-422B-819E-911037934F45}.Release|Any CPU.Build.0 = Release|Any CPU |
EndGlobalSection |
GlobalSection(SolutionProperties) = preSolution |
HideSolutionNode = FALSE |
EndGlobalSection |
EndGlobal |
/trunk/Community.CsharpSqlite.SQLiteClient.SL/Properties/AssemblyInfo.cs |
@@ -0,0 +1,35 @@ |
using System.Reflection; |
using System.Runtime.CompilerServices; |
using System.Runtime.InteropServices; |
|
// General Information about an assembly is controlled through the following |
// set of attributes. Change these attribute values to modify the information |
// associated with an assembly. |
[assembly: AssemblyTitle("Community.CsharpSqlite.SQLiteClient.SL")] |
[assembly: AssemblyDescription("")] |
[assembly: AssemblyConfiguration("")] |
[assembly: AssemblyCompany("")] |
[assembly: AssemblyProduct("Community.CsharpSqlite.SQLiteClient.SL")] |
[assembly: AssemblyCopyright("Copyright © 2011")] |
[assembly: AssemblyTrademark("")] |
[assembly: AssemblyCulture("")] |
|
// Setting ComVisible to false makes the types in this assembly not visible |
// to COM components. If you need to access a type in this assembly from |
// COM, set the ComVisible attribute to true on that type. |
[assembly: ComVisible(false)] |
|
// The following GUID is for the ID of the typelib if this project is exposed to COM |
[assembly: Guid("5cf66686-bc8e-4d47-98ce-8ea30fb91a30")] |
|
// Version information for an assembly consists of the following four values: |
// |
// Major Version |
// Minor Version |
// Build Number |
// Revision |
// |
// You can specify all the values or you can default the Revision and Build Numbers |
// by using the '*' as shown below: |
[assembly: AssemblyVersion("1.0.0.0")] |
[assembly: AssemblyFileVersion("1.0.0.0")] |
/trunk/Community.CsharpSqlite.SQLiteClient.SL/SQLiteClientTests/App.xaml.cs |
@@ -0,0 +1,68 @@ |
using System; |
using System.Collections.Generic; |
using System.Linq; |
using System.Net; |
using System.Windows; |
using System.Windows.Controls; |
using System.Windows.Documents; |
using System.Windows.Input; |
using System.Windows.Media; |
using System.Windows.Media.Animation; |
using System.Windows.Shapes; |
|
namespace SQLiteClientTests |
{ |
public partial class App : Application |
{ |
|
public App() |
{ |
this.Startup += this.Application_Startup; |
this.Exit += this.Application_Exit; |
this.UnhandledException += this.Application_UnhandledException; |
|
InitializeComponent(); |
} |
|
private void Application_Startup(object sender, StartupEventArgs e) |
{ |
this.RootVisual = new MainPage(); |
} |
|
private void Application_Exit(object sender, EventArgs e) |
{ |
|
} |
|
private void Application_UnhandledException(object sender, ApplicationUnhandledExceptionEventArgs e) |
{ |
// If the app is running outside of the debugger then report the exception using |
// the browser's exception mechanism. On IE this will display it a yellow alert |
// icon in the status bar and Firefox will display a script error. |
if (!System.Diagnostics.Debugger.IsAttached) |
{ |
|
// NOTE: This will allow the application to continue running after an exception has been thrown |
// but not handled. |
// For production applications this error handling should be replaced with something that will |
// report the error to the website and stop the application. |
e.Handled = true; |
Deployment.Current.Dispatcher.BeginInvoke(delegate { ReportErrorToDOM(e); }); |
} |
} |
|
private void ReportErrorToDOM(ApplicationUnhandledExceptionEventArgs e) |
{ |
try |
{ |
string errorMsg = e.ExceptionObject.Message + e.ExceptionObject.StackTrace; |
errorMsg = errorMsg.Replace('"', '\'').Replace("\r\n", @"\n"); |
|
System.Windows.Browser.HtmlPage.Window.Eval("throw new Error(\"Unhandled Error in Silverlight Application " + errorMsg + "\");"); |
} |
catch (Exception) |
{ |
} |
} |
} |
} |
/trunk/Community.CsharpSqlite.SQLiteClient.SL/SQLiteClientTests/Properties/AssemblyInfo.cs |
@@ -0,0 +1,35 @@ |
using System.Reflection; |
using System.Runtime.CompilerServices; |
using System.Runtime.InteropServices; |
|
// General Information about an assembly is controlled through the following |
// set of attributes. Change these attribute values to modify the information |
// associated with an assembly. |
[assembly: AssemblyTitle("SQLiteClientTests")] |
[assembly: AssemblyDescription("")] |
[assembly: AssemblyConfiguration("")] |
[assembly: AssemblyCompany("")] |
[assembly: AssemblyProduct("SQLiteClientTests")] |
[assembly: AssemblyCopyright("Copyright © 2011")] |
[assembly: AssemblyTrademark("")] |
[assembly: AssemblyCulture("")] |
|
// Setting ComVisible to false makes the types in this assembly not visible |
// to COM components. If you need to access a type in this assembly from |
// COM, set the ComVisible attribute to true on that type. |
[assembly: ComVisible(false)] |
|
// The following GUID is for the ID of the typelib if this project is exposed to COM |
[assembly: Guid("2ad31cc4-7853-4cbb-b185-239b97d991d8")] |
|
// Version information for an assembly consists of the following four values: |
// |
// Major Version |
// Minor Version |
// Build Number |
// Revision |
// |
// You can specify all the values or you can default the Revision and Build Numbers |
// by using the '*' as shown below: |
[assembly: AssemblyVersion("1.0.0.0")] |
[assembly: AssemblyFileVersion("1.0.0.0")] |
/trunk/Community.CsharpSqlite.SQLiteClient.SL/SQLiteClientTests/SQLiteClientTests.csproj |
@@ -0,0 +1,125 @@ |
<?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>{071198E0-F451-475D-83D2-302C74A3862D}</ProjectGuid> |
<ProjectTypeGuids>{A1591282-1198-4647-A2B1-27E5FF5F6F3B};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</ProjectTypeGuids> |
<OutputType>Library</OutputType> |
<AppDesignerFolder>Properties</AppDesignerFolder> |
<RootNamespace>SQLiteClientTests</RootNamespace> |
<AssemblyName>SQLiteClientTests</AssemblyName> |
<TargetFrameworkIdentifier>Silverlight</TargetFrameworkIdentifier> |
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion> |
<SilverlightVersion>$(TargetFrameworkVersion)</SilverlightVersion> |
<SilverlightApplication>true</SilverlightApplication> |
<SupportedCultures> |
</SupportedCultures> |
<XapOutputs>true</XapOutputs> |
<GenerateSilverlightManifest>true</GenerateSilverlightManifest> |
<XapFilename>SQLiteClientTests.xap</XapFilename> |
<SilverlightManifestTemplate>Properties\AppManifest.xml</SilverlightManifestTemplate> |
<SilverlightAppEntry>SQLiteClientTests.App</SilverlightAppEntry> |
<TestPageFileName>SQLiteClientTestsTestPage.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>TRACE;DEBUG;SQLITE_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;SQLITE_SILVERLIGHT</DefineConstants> |
<NoStdLib>true</NoStdLib> |
<NoConfig>true</NoConfig> |
<ErrorReport>prompt</ErrorReport> |
<WarningLevel>4</WarningLevel> |
</PropertyGroup> |
<ItemGroup> |
<Reference Include="mscorlib" /> |
<Reference Include="System.Windows" /> |
<Reference Include="system" /> |
<Reference Include="System.Core" /> |
<Reference Include="System.Net" /> |
<Reference Include="System.Xml" /> |
<Reference Include="System.Windows.Browser" /> |
</ItemGroup> |
<ItemGroup> |
<Compile Include="..\..\Community.CsharpSqlite.SQLiteClient\TestDriver_src\SQLiteClientTestDriver.cs"> |
<Link>TestDriver_src\SQLiteClientTestDriver.cs</Link> |
</Compile> |
<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" /> |
</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" /> |
</ItemGroup> |
<ItemGroup> |
<ProjectReference Include="..\..\Community.CsharpSqlite.Silverlight\Community.CsharpSqlite.Silverlight.csproj"> |
<Project>{A3AE849B-B668-4BC9-A75F-6E9B0A8F6779}</Project> |
<Name>Community.CsharpSqlite.Silverlight</Name> |
</ProjectReference> |
<ProjectReference Include="..\..\System.Data.Ersatz\System.Data.Ersatz.Silverlight.csproj"> |
<Project>{D7194231-DBAD-422B-819E-911037934F45}</Project> |
<Name>System.Data.Ersatz</Name> |
</ProjectReference> |
<ProjectReference Include="..\Community.CsharpSqlite.SQLiteClient.SL.csproj"> |
<Project>{238EAD8B-B811-4FA6-8581-4CA4B816066D}</Project> |
<Name>Community.CsharpSqlite.SQLiteClient.SL</Name> |
</ProjectReference> |
</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> |