forked from Drizin/DapperQueryBuilder
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DapperQueryBuilder 1.2.7 - now targeted at net461;netstandard2.0;net5…
….0; New DapperQueryBuilder.StrongName (same package but with strong name signing)
- Loading branch information
Showing
9 changed files
with
154 additions
and
18 deletions.
There are no files selected for viewing
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
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
56 changes: 56 additions & 0 deletions
56
src/DapperQueryBuilder.StrongName/DapperQueryBuilder.StrongName.csproj
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<TargetFrameworks>net461;netstandard2.0;net5.0</TargetFrameworks> | ||
<Authors>Rick Drizin</Authors> | ||
<PackageLicenseExpression>MIT</PackageLicenseExpression> | ||
<PackageProjectUrl>https://github.com/Drizin/DapperQueryBuilder/</PackageProjectUrl> | ||
<Description>Dapper Query Builder using Fluent API and String Interpolation</Description> | ||
<Copyright>Rick Drizin</Copyright> | ||
<Company>Rick Drizin</Company> | ||
<Version>1.2.7</Version> | ||
<GeneratePackageOnBuild>false</GeneratePackageOnBuild> | ||
<Title>DapperQueryBuilder (Strong Named)</Title> | ||
<PackageId>DapperQueryBuilder.StrongName</PackageId> | ||
<DocumentationFile>DapperQueryBuilder.StrongName.xml</DocumentationFile> | ||
<PackageTags>dapper;query-builder;query builder;dapperquerybuilder;dapper-query-builder;dapper-interpolation;dapper-interpolated-string</PackageTags> | ||
<PublishRepositoryUrl>true</PublishRepositoryUrl> | ||
<EmbedUntrackedSources>true</EmbedUntrackedSources> | ||
<!-- Include symbol files (*.pdb) in the main .nupkg --> | ||
<PackageReadmeFile>NuGetReadMe.md</PackageReadmeFile> | ||
<AssemblyName>DapperQueryBuilder.StrongName</AssemblyName> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<None Include="..\DapperQueryBuilder\NuGetReadMe.md" Pack="true" PackagePath="\" /> | ||
<PackageReference Include="Dapper.StrongName" Version="2.0.123" /> | ||
<PackageReference Include="Microsoft.CSharp" Version="4.7.0" /> | ||
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1"> | ||
<PrivateAssets>all</PrivateAssets> | ||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> | ||
</PackageReference> | ||
</ItemGroup> | ||
|
||
<Choose> | ||
<When Condition="'$(Configuration)' == 'Debug'"> | ||
<PropertyGroup> | ||
<SignAssembly>True</SignAssembly> | ||
<AssemblyOriginatorKeyFile>..\debug.snk</AssemblyOriginatorKeyFile> | ||
</PropertyGroup> | ||
</When> | ||
<Otherwise> | ||
<PropertyGroup> | ||
<SignAssembly>True</SignAssembly> | ||
<AssemblyOriginatorKeyFile>..\release.snk</AssemblyOriginatorKeyFile> | ||
</PropertyGroup> | ||
</Otherwise> | ||
</Choose> | ||
|
||
<ItemGroup> | ||
<Folder Include="Properties\" /> | ||
<Compile Include="..\DapperQueryBuilder\**\*.cs" Exclude="..\DapperQueryBuilder\obj\**\*.cs" /> | ||
</ItemGroup> | ||
|
||
|
||
</Project> | ||
|
20 changes: 20 additions & 0 deletions
20
src/DapperQueryBuilder.StrongName/DapperQueryBuilder.StrongName.nuspec
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?xml version="1.0"?> | ||
<package > | ||
<metadata> | ||
<id>DapperQueryBuilder.StrongName</id> | ||
<title>DapperQueryBuilder (Strong Named)</title> | ||
<authors>Rick Drizin</authors> | ||
<owners>Rick Drizin</owners> | ||
<license type="expression">MIT</license> | ||
<projectUrl>https://github.com/Drizin/DapperQueryBuilder</projectUrl> | ||
<requireLicenseAcceptance>false</requireLicenseAcceptance> | ||
<description>DapperQueryBuilder: Dapper Query Builder using String Interpolation and Fluent API</description> | ||
<copyright>Copyright Rick Drizin 2020</copyright> | ||
<dependencies> | ||
</dependencies> | ||
</metadata> | ||
<files> | ||
<file src="bin\$configuration$\DapperQueryBuilder.StrongName.*" target="lib\net472" /> | ||
<file src="bin\$configuration$\DapperQueryBuilder.StrongName.*" target="lib\netstandard2.0" /> | ||
</files> | ||
</package> |
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
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
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
$msbuild = ( | ||
"$Env:programfiles (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\Bin\msbuild.exe", | ||
"$Env:programfiles (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin\msbuild.exe", | ||
"$Env:programfiles (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin\msbuild.exe", | ||
"$Env:programfiles (x86)\Microsoft Visual Studio\2019\Professional\MSBuild\Current\Bin\msbuild.exe", | ||
"$Env:programfiles\Microsoft Visual Studio\2022\Professional\MSBuild\Current\Bin\msbuild.exe", | ||
"$Env:programfiles (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\msbuild.exe", | ||
"${Env:ProgramFiles(x86)}\MSBuild\14.0\Bin\MSBuild.exe", | ||
"${Env:ProgramFiles(x86)}\MSBuild\12.0\Bin\MSBuild.exe" | ||
) | Where-Object { Test-Path $_ } | Select-Object -first 1 | ||
|
||
$configuration = 'Release' | ||
|
||
Remove-Item -Recurse -Force -ErrorAction Ignore ".\packages-local" | ||
Remove-Item -Recurse -Force -ErrorAction Ignore "$env:HOMEDRIVE$env:HOMEPATH\.nuget\packages\dapper-querybuilder" | ||
Remove-Item -Recurse -Force -ErrorAction Ignore "$env:HOMEDRIVE$env:HOMEPATH\.nuget\packages\dapperquerybuilder.strongname" | ||
|
||
New-Item -ItemType Directory -Force -Path ".\packages-local" | ||
|
||
dotnet clean DapperQueryBuilder.sln | ||
dotnet clean DapperQueryBuilder\DapperQueryBuilder.csproj | ||
dotnet clean DapperQueryBuilder.StrongName\DapperQueryBuilder.StrongName.csproj | ||
|
||
# DapperQueryBuilder + nupkg/snupkg (dotnet build is the best at restoring packages; but for deterministic builds we need msbuild) | ||
dotnet build -c release DapperQueryBuilder\DapperQueryBuilder.csproj | ||
& $msbuild "DapperQueryBuilder\DapperQueryBuilder.csproj" ` | ||
/t:Pack ` | ||
/p:PackageOutputPath="..\packages-local\" ` | ||
'/p:targetFrameworks="net461;netstandard2.0;net5.0"' ` | ||
/p:Configuration=$configuration ` | ||
/p:IncludeSymbols=true ` | ||
/p:SymbolPackageFormat=snupkg ` | ||
/verbosity:minimal ` | ||
/p:ContinuousIntegrationBuild=true | ||
|
||
# DapperQueryBuilder.StrongName + nupkg/snupkg (dotnet build is the best at restoring packages; but for deterministic builds we need msbuild) | ||
dotnet build -c release DapperQueryBuilder.StrongName\DapperQueryBuilder.StrongName.csproj | ||
& $msbuild "DapperQueryBuilder.StrongName\DapperQueryBuilder.StrongName.csproj" ` | ||
/t:Pack ` | ||
/p:PackageOutputPath="..\packages-local\" ` | ||
'/p:targetFrameworks="net461;netstandard2.0;net5.0"' ` | ||
/p:Configuration=$configuration ` | ||
/p:IncludeSymbols=true ` | ||
/p:SymbolPackageFormat=snupkg ` | ||
/verbosity:minimal ` | ||
/p:ContinuousIntegrationBuild=true | ||
|
||
|
||
|
||
|
||
# Unit tests | ||
if ($configuration -eq "Debug") | ||
{ | ||
dotnet build -c release DapperQueryBuilder.Tests\DapperQueryBuilder.Tests.csproj | ||
dotnet test DapperQueryBuilder.Tests\DapperQueryBuilder.Tests.csproj | ||
} |
Binary file not shown.