Skip to content

Build SQLServerSpatialTools with dotnet core on macos #15

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

tbbuck
Copy link

@tbbuck tbbuck commented Dec 17, 2024

Hi there!

This pull requests aligns the csproj with dotnet core 9 so that modern users can build and deploy SQLServerSpatialTools without having to resort to finding legacy Visual Studio installs on Windows with out-of-support .net framework versions.

I have also modified the project file to use Microsoft.SqlServer.Server and "Microsoft.SqlServer.Types from Nuget, which means users don't have to download any extra files or rely on local filesystem setup in order to build SqlServerSpatial Tools.

While I can't see any reason that this wouldn't build on other platforms, this has not been tested. I'm happy to make corrections should something be discovered all the same.

Apologies for the terse pull request - I found myself in a hole, am digging my way out, and hope that this can help other people suffering from similar!

The .dll is currently running on my test SQL Server 2022 server, and is giving every indication of working well.

Thanks,
Tom.

Sets target framework to net481, referencing Microsoft.NETFramework.ReferenceAssemblies and setting <Project  Sdk="Microsoft.NET.Sdk" to enable the build magic.

Removes pfx certificate building because not supported, LRS code because breaks build, and uses Microsoft.SqlServer.Server and Microsoft.SqlServer.Types from Nuget rather than local filesystem.

Also disables AssemblyInfo.
@tbbuck
Copy link
Author

tbbuck commented Dec 17, 2024

@microsoft-github-policy-service agree

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant