add ScriptDOM code · feiyun0112/SqlScriptDOM@447d15b · GitHub
Skip to content

Commit 447d15b

Browse files
committed
add ScriptDOM code
1 parent 7f19e55 commit 447d15b

2,232 files changed

Lines changed: 354239 additions & 23 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.build/AssemblyInfo.props‎

Lines changed: 12 additions & 0 deletions

‎.build/Signing.props‎

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
2+
<!-- Import this props file for signing properties -->
3+
<PropertyGroup>
4+
<!-- By default we delay sign our assemblies, so they are ready tof real signing at a later stage. -->
5+
<!-- Individual project (like the ancillary tools that we use during the build which do no ship) typically override these values so they can run normally during the build, without having to disbale SNV. -->
6+
<DelaySign>true</DelaySign>
7+
<SignAssembly>true</SignAssembly>
8+
<!-- This SNK file is used to sign almost all DacFx binaries (SQLDOM uses a different one) -->
9+
<LinkKeyFile>$(EnlistmentRoot)\Externals\VS12\VS10_FinalPublicKey.snk</LinkKeyFile>
10+
<AssemblyOriginatorKeyFile>$(EnlistmentRoot)\Externals\VS12\VS10_FinalPublicKey.snk</AssemblyOriginatorKeyFile>
11+
<ShippingScope>External</ShippingScope>
12+
</PropertyGroup>
13+
</Project>

‎.gitignore‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -348,3 +348,12 @@ MigrationBackup/
348348

349349
# Ionide (cross platform F# VS Code tools) working folder
350350
.ionide/
351+
352+
# Project solution
353+
*.sln
354+
355+
# Project output folder
356+
out/
357+
358+
# Project packages folder
359+
.packages/

‎CONTRIBUTING.md‎

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
---
2+
3+
---
4+
5+
# Contributing
6+
7+
Welcome and thank you for your interest
8+
in contributing to **Sql Script DOM**! Before contributing to this
9+
project, please review this document for policies and procedures which
10+
will ease the contribution and review process for everyone.
11+
12+
## Issues and Feature Requests
13+
14+
Before filing an issue, please make sure that the issue has not been submitted before in our public repository [Sql Script DOM](https://github.com/microsoft/SqlScriptDOM/issues).
15+
16+
To report a new issue please add the **bug** tag and use the **enhancement** tag for new feature proposals.
17+
18+
Please create an issue per bug and include the version of Sql Script DOM where you are experiencing the issue, the steps to repro the bug, include error messages if applicable, and add a description of the expected result versus the actual result.
19+
20+
## Pull Request Process
21+
22+
If you are interested in fixing issues and adding new features, please follow our [README.md](./README.md) page to set up your environment.
23+
24+
Before sending a Pull Request, please do the following:
25+
26+
1. Ensure builds are still successful and tests, including any added or updated tests, pass prior to submitting the pull request.
27+
2. Update any documentation, user and contributor, that is impacted by your changes.
28+
3. Include your change description in `CHANGELOG.md` file as part of pull request.
29+
4. You may merge the pull request in once you have the sign-off of two other developers, or if you do not have permission to do that, you may request the second reviewer to merge it for you.
30+
31+
## License Information
32+
Copyright (c) Microsoft Corporation. All rights reserved.
33+
34+
Licensed under the [Source MIT](LICENSE).

‎Directory.Build.props‎

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<!--
3+
This root MSBuild file is automatically imported for all projects in the tree by MSBuild 15.0.
4+
You can have a hierarchy of imports but make sure that this file is still imported.
5+
-->
6+
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
7+
<PropertyGroup Label="Global locations">
8+
<!--
9+
$(MSBuildAllProjects) is a list of files that determine if a project is up-to-date or not. By including this
10+
file in the list, it ensures that all projects will be rebuilt if it changes.
11+
-->
12+
<MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects>
13+
14+
<!-- By default we build the XMLDOC files -->
15+
<GenerateDocumentationFile>true</GenerateDocumentationFile>
16+
17+
<!--
18+
Enlistment root is based off of wherever this file is. Be sure not to set this property anywhere else.
19+
-->
20+
<EnlistmentRoot>$(MSBuildThisFileDirectory.TrimEnd('\\'))</EnlistmentRoot>
21+
<!-- .build folder path, which can also be used for other purpose in future, this path is used to import the props file-->
22+
<BuildPropsDir>$(EnlistmentRoot)\.build</BuildPropsDir>
23+
24+
<!-- This is the location where we restore/install the nuget packages -->
25+
<RestorePackagesPath>$(EnlistmentRoot)\.packages</RestorePackagesPath>
26+
27+
<!-- This is the default target framework for all the projects.
28+
Individual projects may specify additional target frameworks -->
29+
<NetfxVersion>net462</NetfxVersion>
30+
<NetStandardVersion>netstandard2.1</NetStandardVersion>
31+
<NetCoreVersion>net6.0</NetCoreVersion>
32+
33+
<TargetFrameworks>$(NetStandardVersion);$(NetfxVersion);$(NetCoreVersion)</TargetFrameworks>
34+
<PreviewRelease Condition="'$(PreviewRelease)' == ''">false</PreviewRelease>
35+
<VersionProductName>Microsoft SQL Script DOM</VersionProductName>
36+
37+
<!-- Use this property for convenience to build a path starting from the root of the repository. -->
38+
39+
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
40+
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
41+
42+
<TargetFolder Condition="'$(TargetFolder)'==''">out</TargetFolder>
43+
<BaseOutputPath Condition="'$(BaseOutputPath)'==''">$(EnlistmentRoot)\$(TargetFolder)</BaseOutputPath>
44+
<OutputPath>$(BaseOutputPath)\$(Configuration)</OutputPath>
45+
46+
<!-- Path for tools output files, .exe executable generated files for tools can be found here -->
47+
<BuildToolsPath>$(BaseOutputPath)\tools\$(NetfxVersion)</BuildToolsPath>
48+
49+
<!-- put obj files in a mirror tree off the root to keep the src folder tree cleaner -->
50+
<BaseIntermediateOutputPath Condition=" '$(BaseIntermediateOutputPath)' == '' ">$(EnlistmentRoot)\obj\$([MSBuild]::MakeRelative('$(EnlistmentRoot)\', $(MSBuildProjectDirectory)))</BaseIntermediateOutputPath>
51+
</PropertyGroup>
52+
53+
<PropertyGroup>
54+
<NoWarn>1591</NoWarn>
55+
</PropertyGroup>
56+
57+
<Import Project="$(BuildPropsDir)\AssemblyInfo.props" />
58+
<Import Project="$(BuildPropsDir)\Signing.props" />
59+
</Project>

‎Directory.Build.targets‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<!-- This SDK is for using packages.props for Nuget references: https://github.com/Microsoft/MSBuildSdks/tree/main/src/CentralPackageVersions -->
2+
<Project Sdk="Microsoft.Build.CentralPackageVersions">
3+
</Project>
160 Bytes
Binary file not shown.

‎Packages.props‎

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<!-- This repo relies on the CentralPackageVersions SDK
2+
See https://github.com/Microsoft/MSBuildSdks/tree/main/src/CentralPackageVersions
3+
This file lists every nuget PackageReference dependency and its required version.
4+
Do not put Version attributes on PackageReference tags in individual projects.
5+
-->
6+
<Project>
7+
<PropertyGroup>
8+
<DotNetPackagesVersion>4.7.0</DotNetPackagesVersion>
9+
</PropertyGroup>
10+
<ItemGroup>
11+
<PackageReference Update="System.Buffers" Version="4.5.1" />
12+
<PackageReference Update="System.Diagnostics.DiagnosticSource" Version="5.0.0" />
13+
<PackageReference Update="System.Drawing.Common" Version="6.0.0" />
14+
<PackageReference Update="System.Runtime.CompilerServices.Unsafe" Version="5.0.0" />
15+
<PackageReference Update="System.Text.Encodings.Web" Version="5.0.1" />
16+
<PackageReference Update="System.Threading.Tasks.Dataflow" Version="4.9.0" />
17+
<PackageReference Update="System.Threading.Tasks.Extensions" Version="4.5.4" />
18+
<PackageReference Update="System.ValueTuple" Version="4.5.0" />
19+
20+
<!-- Test -->
21+
<PackageReference Update="Microsoft.NET.Test.Sdk" Version="17.3.0" />
22+
<PackageReference Update="MSTest.TestAdapter" Version="2.2.10" />
23+
<PackageReference Update="MSTest.TestFramework" Version="2.2.10" />
24+
</ItemGroup>
25+
</Project>

‎README.md‎

Lines changed: 103 additions & 23 deletions

0 commit comments

Comments
 (0)