Skip to content

Commit e478e97

Browse files
committed
Version 1.0.0
1 parent c504afd commit e478e97

File tree

11 files changed

+540
-459
lines changed

11 files changed

+540
-459
lines changed

Daikoz.SQLWrapper/Daikoz.SQLWrapper.csproj

Lines changed: 40 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<LangVersion>latest</LangVersion>
66
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
77
<PackageRequireLicenseAcceptance>false</PackageRequireLicenseAcceptance>
8-
<Version>0.4</Version>
8+
<Version>1.0.0</Version>
99
<Authors>DAIKOZ</Authors>
1010
<Company>DAIKOZ</Company>
1111
<Copyright>© 2019 - DAIKOZ - All rights reserved</Copyright>
@@ -14,37 +14,48 @@
1414
<RepositoryUrl>https://github.com/daikoz/SQLWrapper</RepositoryUrl>
1515
<PackageTags>sql;wrapper;sqlwrapper;ado;dapper;mysql;mariadb;</PackageTags>
1616
<PackageReleaseNotes></PackageReleaseNotes>
17-
<Title>SQLWrapper</Title>
18-
<Description>A high performance SQL Wrapper and syntax checking supporting MySQL, MariaDB... SQLWrapper generate call code from SQL file and check SQL syntax before compile task. The call automatically created and check syntax identify database changes.
17+
<Title>SQLWrapper</Title>
18+
<Description>
19+
A high performance SQL Wrapper and syntax checking supporting MySQL, MariaDB... SQLWrapper generate call code from SQL file and check SQL syntax before compile task. The call automatically created and check syntax identify database changes.
1920

20-
SQL Wrapper is not a ORM: it generate code form SQL request. It have better performance than linq or EntityFramework and there are not SQL limitation.
21+
SQL Wrapper is not a ORM: it generate code form SQL request. It have better performance than linq or EntityFramework and there are not SQL limitation.
2122

22-
SQL Wrapper get database structure to check SQL syntax and generate a XML with all returned columns of SQL request. From this XML, you can apply our XLST (or the XLST provided) to generate the code.
23+
SQL Wrapper get database structure to check SQL syntax and generate a XML with all returned columns of SQL request. From this XML, you can apply our XLST (or the XLST provided) to generate the code.
2324

24-
Thus, SQL Wrapper can generate SQL call code from any language like C#, Java, Python, Javascript, VB .NET, ADO .NET ...</Description>
25-
<AssemblyVersion>0.4.0</AssemblyVersion>
26-
<FileVersion>0.4.0</FileVersion>
25+
Thus, SQL Wrapper can generate SQL call code from any language like C#, Java, Python, Javascript, VB .NET, ADO .NET ...
26+
</Description>
27+
<AssemblyVersion>0.4.3</AssemblyVersion>
28+
<FileVersion>0.4.3</FileVersion>
2729
<PackageLicenseUrl></PackageLicenseUrl>
2830
<PackageLicenseExpression></PackageLicenseExpression>
2931
<PackageIconUrl>https://www.daikoz.com/img/sqlwrapper.png</PackageIconUrl>
32+
<BuildOutputTargetFolder>dll</BuildOutputTargetFolder>
33+
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
34+
<NoWarn>NU5100</NoWarn>
3035
</PropertyGroup>
3136

3237
<ItemGroup>
33-
<PackageReference Include="Microsoft.Build.Framework" Version="16.0.461" />
34-
<PackageReference Include="Microsoft.Build.Utilities.Core" Version="16.0.461" />
35-
<PackageReference Include="Microsoft.CSharp" Version="4.5.0" />
38+
<PackageReference Include="Microsoft.Build.Framework" Version="16.4.0" PrivateAssets="All" />
39+
<PackageReference Include="Microsoft.Build.Utilities.Core" Version="16.4.0" PrivateAssets="All" />
40+
<PackageReference Include="Microsoft.CodeAnalysis.FxCopAnalyzers" Version="2.9.8">
41+
<PrivateAssets>all</PrivateAssets>
42+
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
43+
</PackageReference>
44+
<PackageReference Include="Microsoft.CSharp" Version="4.7.0" PrivateAssets="All" />
3645
</ItemGroup>
3746

3847
<ItemGroup>
3948
<Content Include="build\*.targets" PackagePath="build\" />
4049
</ItemGroup>
4150

4251
<ItemGroup>
43-
<Folder Include="Properties\PublishProfiles\" />
52+
<Content Include="tools/**/*.*" PackagePath="tools\" />
4453
</ItemGroup>
4554

4655
<ItemGroup>
47-
<Content Include="tools/**/*.*" PackagePath="tools\" />
56+
<Compile Remove="Properties\PublishProfiles\**" />
57+
<EmbeddedResource Remove="Properties\PublishProfiles\**" />
58+
<None Remove="Properties\PublishProfiles\**" />
4859
</ItemGroup>
4960

5061
<ItemGroup>
@@ -59,7 +70,10 @@ Thus, SQL Wrapper can generate SQL call code from any language like C#, Java, Py
5970
<Content Update="tools\SQLWrapper.exe">
6071
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
6172
</Content>
62-
<Content Update="tools\Template\charpADO.xslt">
73+
<Content Update="tools\Template\csharp\ADO.xslt">
74+
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
75+
</Content>
76+
<Content Update="tools\Template\csharp\helper.xslt">
6377
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
6478
</Content>
6579
</ItemGroup>
@@ -71,8 +85,18 @@ Thus, SQL Wrapper can generate SQL call code from any language like C#, Java, Py
7185
</EmbeddedResource>
7286
</ItemGroup>
7387

74-
<Target Name="PostBuild" AfterTargets="PostBuildEvent">
75-
<Exec Command="REM dotnet publish ../../App/SQLWrapper/ -c Release -r win-x64&#xD;&#xA;robocopy /MIR /NP ../../App\SQLWrapper\bin\Release\netcoreapp2.2\win-x64\publish tools&#xD;&#xA;del tools\*.json&#xD;&#xA;del tools\*.pdb" />
88+
<Target Name="PackTaskDependencies" BeforeTargets="GenerateNuspec">
89+
<!--
90+
The include needs to happen after output has been copied to build output folder
91+
but before NuGet generates a nuspec. See https://github.com/NuGet/Home/issues/4704.
92+
-->
93+
<ItemGroup>
94+
<_PackageFiles Include="bin\$(Configuration)\*\Microsoft.Build.Framework.dll;bin\$(Configuration)\*\Microsoft.Build.Utilities.Core.dll;bin\$(Configuration)\*\Microsoft.CSharp.dll;bin\$(Configuration)\*\System.Collections.Immutable.dll;bin\$(Configuration)\*\System.Runtime.Serialization.Primitives.dll;bin\$(Configuration)\*\System.Threading.dll;bin\$(Configuration)\*\System.Threading.Thread.dll">
95+
<PackagePath>dll\</PackagePath>
96+
<Visible>false</Visible>
97+
<BuildAction>Content</BuildAction>
98+
</_PackageFiles>
99+
</ItemGroup>
76100
</Target>
77101

78102
</Project>
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
// This file is used by Code Analysis to maintain SuppressMessage
2+
// attributes that are applied to this project.
3+
// Project-level suppressions either have no target or are given
4+
// a specific target and scoped to a namespace, type, member, etc.
5+
6+
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Globalization", "CA1303:Do not pass literals as localized parameters", Justification = "<Pending>", Scope = "member", Target = "~M:Daikoz.SQLWrapper.SQLWrapperBuild.Execute~System.Boolean")]
7+
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Design", "CA1031:Do not catch general exception types", Justification = "<Pending>", Scope = "member", Target = "~M:Daikoz.SQLWrapper.SQLWrapperBuild.Execute~System.Boolean")]
8+
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Globalization", "CA1303:Do not pass literals as localized parameters", Justification = "<Pending>", Scope = "member", Target = "~M:Daikoz.SQLWrapper.SQLWrapperExecute.#ctor(System.String,Microsoft.Build.Utilities.TaskLoggingHelper,System.Boolean)")]
9+
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Globalization", "CA1303:Do not pass literals as localized parameters", Justification = "<Pending>", Scope = "member", Target = "~M:Daikoz.SQLWrapper.SQLWrapperExecute.Execute~System.Boolean")]

0 commit comments

Comments
 (0)