Created
November 1, 2011 23:31
-
-
Save Romiko/1332273 to your computer and use it in GitHub Desktop.
Sql CE in the cloud. Need to ensure correct structure within the bin folder
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | |
<PropertyGroup> | |
....all sorts of config stuff | |
<Reference Include="System.Data.SqlServerCe, Version=4.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91, processorArchitecture=MSIL"> | |
<Private>True</Private> | |
<HintPath>..\packages\SqlServerCompact.4.0.8482.1\lib\System.Data.SqlServerCe.dll</HintPath> | |
</Reference> | |
<Reference Include="System.Data.SqlServerCe.Entity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91, processorArchitecture=MSIL"> | |
<Private>True</Private> | |
<HintPath>..\packages\EntityFramework.SqlServerCompact.4.1.8482.2\lib\System.Data.SqlServerCe.Entity.dll</HintPath> | |
</Reference><Target Name="CopySqlServerCompactNativeAssemblies" AfterTargets="Build"> | |
<CreateItem Include="$(MSBuildProjectDirectory)\..\packages\SqlServerCompact.4.0.8482.1\NativeBinaries\**\*.*"> | |
<Output ItemName="sqlServerCompactNativeAssemblies" TaskParameter="Include" /> | |
</CreateItem> | |
<Copy SourceFiles="@(sqlServerCompactNativeAssemblies)" DestinationFolder="$(OutDir)\%(RecursiveDir)" SkipUnchangedFiles="true" Retries="$(CopyRetryCount)" RetryDelayMilliseconds="$(CopyRetryDelayMilliseconds)" /> | |
</Target> | |
<PropertyGroup> | |
<PostBuildEvent> | |
if not exist "$(TargetDir)x86" md "$(TargetDir)x86" | |
xcopy /s /y "$(SolutionDir)packages\SqlServerCompact.4.0.8482.1\NativeBinaries\x86\*.*" "$(TargetDir)x86" | |
if not exist "$(TargetDir)amd64" md "$(TargetDir)amd64" | |
xcopy /s /y "$(SolutionDir)packages\SqlServerCompact.4.0.8482.1\NativeBinaries\amd64\*.*" "$(TargetDir)amd64"</PostBuildEvent> | |
</PropertyGroup> | |
</Project> | |
....all sorts of config stuff | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment