-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
Announcement: Visual Studio 2017/.csproj Migration #733
Comments
I noticed the build.ps1 doesn't just run dotnet build on the entire solution, rather iterating through all the projects? Is there a reason for this, or is it just a symptom of the previous tooling? I would expect to see something like this (apologies for pseudo ish code)
|
@nrandell you can even call |
@henkmollema - nice! |
@nrandell Unfortunately, you can't restore then pack at the moment if you want pre-releases to work. See NuGet/Home#4337 for details. If I pushed a pre-release to NuGet, everyone would fail to restore and pre-release dependencies. Restore could be simpler yes, but that was bugged on dev-only tooling package references earlier. I'm not sure if it's been resolved, we certainly wouldn't want the build to fail on those. There's also the possibility that not all packages in the solution have the same version number now or later. So packing them all with 1 @henkmollema That's the the |
As you can see above, the package System.Data.SqlClient is referenced. This means we are tying the netstandard lib of Dapper to a SQL Server dependency, right? Would you consider a PR that replaces System.Data.SqlClient with System.Data.Common and adds System.Data.SqlClient to test projects where needed? |
yes; we tried to not have provider specific dependencies. In particular we
dont want external dependencies, but **if it compiles** with Common,
absolutely: do that - it would be an oversight on our part to have an
unnecrssarily specific reference.
…On 21 Apr 2017 5:34 a.m., "Sebastian Burgstaller" ***@***.***> wrote:
As you can see above, the package System.Data.SqlClient is referenced.
This means we are tying the netstandard lib of Dapper to a SQL Server
dependency, right? Would you consider a PR that replaces
System.Data.SqlClient with System.Data.Common and adds
System.Data.SqlClient to test projects where needed?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#733 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AABDsKCc0naOsvfdC1Nz16mYxl2nL83mks5ryDHHgaJpZM4MpRlG>
.
|
I was about to start when I realized that to you already did it. :-D Thank you! |
This is now completed, |
While Dapper currently "works" on some version of the VS 2015/project.json tooling, it's a pain. It's highly specific. (It varies). And it's getting no more love from the .NET team. It's time to upgrade to the VS 2017
.csproj
project system.Aside from one blocker which I'm monitoring in NuGet/Home#4853, we're ready to do this. I've got a branch up: vs2017, and the main commit is here: ae7a29a.
This means anyone contributing to Dapper needs to be on the new
.csproj
system. This works both in Visual Studio 2017 and in Visual Studio Code. There's a newbuild.ps1
updates to build from the command line (you'll need thedotnet
tools installed): https://www.microsoft.com/net/download/coreI'll update the
build.sh
as soon as I can from a MacBook to test on. Another set of moves will just be inside the directories, files intosrc/
andtests/
folders (I haven't done this yet as to be minimally conflicting with existing PRs).As a quick comparison, here was the old
Dapper\project.json
:And the new
.csproj
:Note that the
.StrongName
projects have moved into the same directory (eliminating file include complication), but aren't going away until v2 (since it's a breaking change). The goal is minimal changes to the existing packages on NuGet with this migration.If anyone has questions or concerns, I'm happy to answer them here.
The text was updated successfully, but these errors were encountered: