From 6003572369efa760ca831887c347ca6dab4c0f1b Mon Sep 17 00:00:00 2001 From: Juan Martinez Ramirez Date: Tue, 9 Apr 2024 15:41:23 -0600 Subject: [PATCH 1/4] POC to generate conditional build for exclude cloud providers. --- Snowflake.Data/Snowflake.Data.csproj | 46 +++++++++++++++++++++++++--- 1 file changed, 41 insertions(+), 5 deletions(-) diff --git a/Snowflake.Data/Snowflake.Data.csproj b/Snowflake.Data/Snowflake.Data.csproj index 0621c5fb0..0a37fc2d9 100644 --- a/Snowflake.Data/Snowflake.Data.csproj +++ b/Snowflake.Data/Snowflake.Data.csproj @@ -2,8 +2,7 @@ net6.0;net471;net472 net6.0 - Snowflake.Data - Snowflake.Data + false https://github.com/snowflakedb/snowflake-connector-net/blob/master/LICENSE https://github.com/snowflakedb/snowflake-connector-net true @@ -17,13 +16,50 @@ Full 7.3 - - - + + + Snowflake.Data + Snowflake.Data + Snowflake Connector for .NET + + + Snowflake.Data.Core + Snowflake.Data.Core + Snowflake Connector for .NET + + + + + + Runtime,Build,Native,Analyzers,BuildTransitive + compile + + + Runtime,Build,Native,Analyzers,BuildTransitive + compile + + + Runtime,Build,Native,Analyzers,BuildTransitive + compile + + + Runtime,Build,Native,Analyzers,BuildTransitive + compile + + + + + + + + + + + From 536a9a65212e9e15172c4b5016273b1fcc3a6d39 Mon Sep 17 00:00:00 2001 From: Juan Martinez Ramirez Date: Fri, 12 Apr 2024 18:16:34 -0600 Subject: [PATCH 2/4] Nuspec for AWS dependencies This requires using Nuget.exe to be generated using the next command: nuget.exe pack snowflake.data.aws.nuspec -Exclude ** --- Snowflake.Data/snowflake.data.aws.nuspec | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100755 Snowflake.Data/snowflake.data.aws.nuspec diff --git a/Snowflake.Data/snowflake.data.aws.nuspec b/Snowflake.Data/snowflake.data.aws.nuspec new file mode 100755 index 000000000..03ffff8b1 --- /dev/null +++ b/Snowflake.Data/snowflake.data.aws.nuspec @@ -0,0 +1,20 @@ + + + + Snowflake.Data.AWS + 3.1.0 + Snowflake.Data.AWS + howryu, tchen + true + https://github.com/snowflakedb/snowflake-connector-net/blob/master/LICENSE + https://github.com/snowflakedb/snowflake-connector-net + https://raw.githubusercontent.com/snowflakedb/snowflake-connector-net/master/Snowflake.Data/snowflake.ico + Snowflake Connector for .NET + Copyright (c) 2012-2023 Snowflake Computing Inc. All rights reserved. + + + + + + + \ No newline at end of file From 773105c778f70e0c590e66a7460fb96e670c7241 Mon Sep 17 00:00:00 2001 From: Juan Martinez Ramirez Date: Wed, 17 Apr 2024 10:03:42 -0600 Subject: [PATCH 3/4] Moved nuspec to providers folder --- .../Snowflake.Data.AWS.Dependencies.nuspec} | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) rename Snowflake.Data/{snowflake.data.aws.nuspec => providers/Snowflake.Data.AWS.Dependencies.nuspec} (75%) mode change 100755 => 100644 diff --git a/Snowflake.Data/snowflake.data.aws.nuspec b/Snowflake.Data/providers/Snowflake.Data.AWS.Dependencies.nuspec old mode 100755 new mode 100644 similarity index 75% rename from Snowflake.Data/snowflake.data.aws.nuspec rename to Snowflake.Data/providers/Snowflake.Data.AWS.Dependencies.nuspec index 03ffff8b1..d078d42e1 --- a/Snowflake.Data/snowflake.data.aws.nuspec +++ b/Snowflake.Data/providers/Snowflake.Data.AWS.Dependencies.nuspec @@ -1,18 +1,18 @@  - Snowflake.Data.AWS + Snowflake.Data.AWS.Dependencies 3.1.0 - Snowflake.Data.AWS - howryu, tchen + Snowflake.Data.AWS.Dependencies + Snowflake true https://github.com/snowflakedb/snowflake-connector-net/blob/master/LICENSE https://github.com/snowflakedb/snowflake-connector-net https://raw.githubusercontent.com/snowflakedb/snowflake-connector-net/master/Snowflake.Data/snowflake.ico - Snowflake Connector for .NET + Snowflake Connector AWS dependencies for .NET Copyright (c) 2012-2023 Snowflake Computing Inc. All rights reserved. - + From 7c0587d7aba8c19f04cadc1383fb4a7813aa7655 Mon Sep 17 00:00:00 2001 From: Juan Martinez Ramirez Date: Wed, 17 Apr 2024 10:04:54 -0600 Subject: [PATCH 4/4] Removed conditional build --- Snowflake.Data/Snowflake.Data.csproj | 32 +++++----------------------- 1 file changed, 5 insertions(+), 27 deletions(-) diff --git a/Snowflake.Data/Snowflake.Data.csproj b/Snowflake.Data/Snowflake.Data.csproj index 0a37fc2d9..e04f8d0cf 100644 --- a/Snowflake.Data/Snowflake.Data.csproj +++ b/Snowflake.Data/Snowflake.Data.csproj @@ -2,7 +2,9 @@ net6.0;net471;net472 net6.0 - false + Snowflake.Data + Snowflake.Data + Snowflake Connector for .NET https://github.com/snowflakedb/snowflake-connector-net/blob/master/LICENSE https://github.com/snowflakedb/snowflake-connector-net true @@ -16,19 +18,8 @@ Full 7.3 - - - Snowflake.Data - Snowflake.Data - Snowflake Connector for .NET - - - Snowflake.Data.Core - Snowflake.Data.Core - Snowflake Connector for .NET - - - + + Runtime,Build,Native,Analyzers,BuildTransitive @@ -46,19 +37,6 @@ Runtime,Build,Native,Analyzers,BuildTransitive compile - - - - - - - - - - - - -