Skip to content

Commit

Permalink
Merge pull request #531 from microsoft/prepForSDKGA
Browse files Browse the repository at this point in the history
Prepare for VS Code SDK GA
  • Loading branch information
mattmasson authored May 17, 2024
2 parents fad8c26 + 01fee5b commit 81482fa
Show file tree
Hide file tree
Showing 121 changed files with 893 additions and 2,566 deletions.
9 changes: 9 additions & 0 deletions CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Microsoft Open Source Code of Conduct

This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).

Resources:

- [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/)
- [Microsoft Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/)
- Contact [[email protected]](mailto:[email protected]) with questions or concerns
21 changes: 0 additions & 21 deletions CustomConnectorGallery.md

This file was deleted.

36 changes: 17 additions & 19 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,23 +1,21 @@
MIT License
MIT License

Copyright (c) 2017 Microsoft Corporation
Copyright (c) Microsoft Corporation.

All rights reserved.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE
2 changes: 1 addition & 1 deletion docs/README.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Docs have been moved to the [Power Query documentation repo](https://docs.microsoft.com/power-query/startingtodevelopcustomconnectors).
Docs have been moved to the [Power Query documentation repo](https://learn.microsoft.com/power-query/install-sdk).
5 changes: 5 additions & 0 deletions samples/DataWorldSwagger/.vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"powerquery.sdk.defaultExtension": "${workspaceFolder}\\bin\\AnyCPU\\Debug\\${workspaceFolderBasename}.mez",
"powerquery.sdk.defaultQueryFile": "${workspaceFolder}\\${workspaceFolderBasename}.query.pq",
"powerquery.general.mode": "SDK",
}
100 changes: 0 additions & 100 deletions samples/DataWorldSwagger/DataWorldSwagger.mproj

This file was deleted.

25 changes: 25 additions & 0 deletions samples/DataWorldSwagger/DataWorldSwagger.proj
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" DefaultTargets="BuildMez">
<PropertyGroup>
<OutputPath Condition="'$(OutputPath)' == ''">$(MSBuildProjectDirectory)\bin\AnyCPU\Debug\</OutputPath>
<IntermediateOutputPath Condition="'$(IntermediateOutputPath)' == ''">$(MSBuildProjectDirectory)\obj\</IntermediateOutputPath>
<MezIntermediatePath>$(IntermediateOutputPath)MEZ\</MezIntermediatePath>
<MezOutputPath>$(OutputPath)$(MsBuildProjectName).mez</MezOutputPath>
</PropertyGroup>
<ItemGroup>
<MezContent Include="client_id" />
<MezContent Include="client_secret" />
<MezContent Include="DataWorldSwagger.pq" />
<MezContent Include="resources.resx" />
</ItemGroup>
<Target Name="BuildMez" AfterTargets="Build" Inputs="@(MezContent)" Outputs="$(MezOutputPath)">
<RemoveDir Directories="$(MezIntermediatePath)" />
<Copy SourceFiles="@(MezContent)" DestinationFolder="$(MezIntermediatePath)" />
<MakeDir Directories="$(OutputPath)" Condition="!Exists('$(OutputPath)')" />
<ZipDirectory SourceDirectory="$(MezIntermediatePath)" DestinationFile="$(MezOutputPath)" Overwrite="true" />
</Target>
<Target Name="Clean">
<RemoveDir Directories="$(MezIntermediatePath)" />
<Delete Files="$(MezOutputPath)" />
</Target>
</Project>
5 changes: 5 additions & 0 deletions samples/DirectQueryForSQL/.vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"powerquery.sdk.defaultExtension": "${workspaceFolder}\\bin\\AnyCPU\\Debug\\${workspaceFolderBasename}.mez",
"powerquery.sdk.defaultQueryFile": "${workspaceFolder}\\${workspaceFolderBasename}.query.pq",
"powerquery.general.mode": "SDK",
}
Binary file removed samples/DirectQueryForSQL/DirectQueryForSQL.mez
Binary file not shown.
117 changes: 0 additions & 117 deletions samples/DirectQueryForSQL/DirectQueryForSQL.mproj

This file was deleted.

30 changes: 30 additions & 0 deletions samples/DirectQueryForSQL/DirectQueryForSQL.proj
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" DefaultTargets="BuildMez">
<PropertyGroup>
<OutputPath Condition="'$(OutputPath)' == ''">$(MSBuildProjectDirectory)\bin\AnyCPU\Debug\</OutputPath>
<IntermediateOutputPath Condition="'$(IntermediateOutputPath)' == ''">$(MSBuildProjectDirectory)\obj\</IntermediateOutputPath>
<MezIntermediatePath>$(IntermediateOutputPath)MEZ\</MezIntermediatePath>
<MezOutputPath>$(OutputPath)$(MsBuildProjectName).mez</MezOutputPath>
</PropertyGroup>
<ItemGroup>
<MezContent Include="DirectQueryForSQL.pq" />
<MezContent Include="DirectQueryForSQL16.png" />
<MezContent Include="DirectQueryForSQL20.png" />
<MezContent Include="DirectQueryForSQL24.png" />
<MezContent Include="DirectQueryForSQL32.png" />
<MezContent Include="DirectQueryForSQL40.png" />
<MezContent Include="DirectQueryForSQL48.png" />
<MezContent Include="DirectQueryForSQL64.png" />
<MezContent Include="resources.resx" />
</ItemGroup>
<Target Name="BuildMez" AfterTargets="Build" Inputs="@(MezContent)" Outputs="$(MezOutputPath)">
<RemoveDir Directories="$(MezIntermediatePath)" />
<Copy SourceFiles="@(MezContent)" DestinationFolder="$(MezIntermediatePath)" />
<MakeDir Directories="$(OutputPath)" Condition="!Exists('$(OutputPath)')" />
<ZipDirectory SourceDirectory="$(MezIntermediatePath)" DestinationFile="$(MezOutputPath)" Overwrite="true" />
</Target>
<Target Name="Clean">
<RemoveDir Directories="$(MezIntermediatePath)" />
<Delete Files="$(MezOutputPath)" />
</Target>
</Project>
Binary file removed samples/DirectQueryForSQL/DirectQueryForSQL80.png
Binary file not shown.
3 changes: 2 additions & 1 deletion samples/DirectQueryForSQL/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Direct Query using SQL Server ODBC

This sample creates an ODBC based custom connector that enables Direct Query for SQL Server.

The code does the following:
Expand All @@ -9,4 +10,4 @@ The code does the following:
* Overrides default ODBC capabilities returned by the driver
* Wraps M's built-in ODBC function - `Odbc.DataSource`

Please see the comments in the code for more details.
Please see the comments in the code for more details.
5 changes: 5 additions & 0 deletions samples/Github/.vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"powerquery.sdk.defaultExtension": "${workspaceFolder}\\bin\\AnyCPU\\Debug\\${workspaceFolderBasename}.mez",
"powerquery.sdk.defaultQueryFile": "${workspaceFolder}\\${workspaceFolderBasename}.query.pq",
"powerquery.general.mode": "SDK",
}
Binary file removed samples/Github/Github.mez
Binary file not shown.
3 changes: 2 additions & 1 deletion samples/Github/README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
# Tutorial found at PQ Docs
Please see the [Github Tutorial](https://docs.microsoft.com/en-us/power-query/samples/github/readme) in the PQ Docs.

Please see the [Github Tutorial](https://learn.microsoft.com/power-query/samples/github/readme) in the PQ Docs.
Loading

0 comments on commit 81482fa

Please sign in to comment.