Skip to content
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

Anyone else having build issues? #9053

Closed
pmiddleton opened this issue Jul 3, 2017 · 13 comments
Closed

Anyone else having build issues? #9053

pmiddleton opened this issue Jul 3, 2017 · 13 comments
Labels
closed-no-further-action The issue is closed and no further action is planned.

Comments

@pmiddleton
Copy link
Contributor

There is a new core framework version out (2.0.0-preview3-006628) and now I am unable to build. Is anyone else having this issue?

I have updated my MSBuildSdksPath to point at %userprofile%.dotnet\x64\sdk\2.0.0-preview3-006628\Sdks

I have tried deleting %userprofile%.dotnet and %userprofile%.nuget to force a new download. I am still unable to build from the command line or visual studio.

Anyone have any other ideas of what I can try?

@bricelam
Copy link
Contributor

bricelam commented Jul 3, 2017

I'm using Visual Studio 2017 version 15.3 Preview 3 with .NET Core 2.0.0 Preview 2 installed. If I git clean -xdf and open the solution in VS without running build.cmd things generally work.

@bricelam
Copy link
Contributor

bricelam commented Jul 3, 2017

(Also, unset MSBuildSdksPath)

@ajcvickers
Copy link
Contributor

@pmiddleton Building has been very flaky lately due to many changes coming in for 2.0 from many sources, including VS, NuGet, and .NET Core, as well as changes in the ASP.NET infrastructure which EF uses. It's been hard for everyone and we apologize for that and feel your pain. Hopefully @bricelam's suggestion works for you. We'll try to do better in the future.

@ajcvickers ajcvickers added the closed-no-further-action The issue is closed and no further action is planned. label Jul 3, 2017
@pmiddleton
Copy link
Contributor Author

@bricelam - I switched over to the preview and removed the MsBuildSdksPath and that has me building again - thanks! What are you using to run your unit tests in the preview - I can't get TestDriven.Net to install in the preview, and the built in test runner is blowing up.

@ajcvickers - No problems, totally expected with everything that is currently in flight. I just hope you all don't mind my asking for ideas when I get stuck with build issues.

@bricelam
Copy link
Contributor

bricelam commented Jul 3, 2017

It sucks, but the CLI is the only reliable way I've found to run tests.

dotnet test
dotnet test --filter FullyQualifiedName~Namespace.Class
dotnet test --filter FullyQualifiedName=Namespace.Class.Method

I also usually add -f netcoreapp2.0 (or net461) so they only run once.

@bricelam
Copy link
Contributor

bricelam commented Jul 3, 2017

To debug, I add a Debugger.Launch() call to beginning of the test and attach VS.

@roji
Copy link
Member

roji commented Jul 3, 2017

I've personally been running EF Core tests on the CLI on and off for, I think, years :)

It's just comforting to see dotnet test as an official recommendation from the team :)

@ajcvickers
Copy link
Contributor

@roji Internally we try to keep TestDriven.NET working as much as possible, but I haven't been able to get it to work on the latest preview.

@roji
Copy link
Member

roji commented Jul 4, 2017

@ajcvickers I'm personally on the R# runner, it's true that things were OK until relatively recently, but here I'm reminiscing about the days of project.json, pre-RTM .NET Core etc. etc. So much life lost in stone-age debugging techniques...

Anyway I'm sure it'll sort itself out soon.

@pmiddleton
Copy link
Contributor Author

@roji - I have never used the R# task runner - does it work in the preview version of VS? I would prefer to avoid the command line as well.

At least we don't have to fall back to using GDB :)

@roji
Copy link
Member

roji commented Jul 4, 2017

Ironically enough R# works well on the latest VS preview - for Npgsql which uses nunit - whereas it doesn't work for me with the EF Core provider, which uses xunit. This is the first time in history nunit support has actually been better than xunit. Lots of Console.WriteLine() and Debugger.Launch() at the moment :)

@pmiddleton
Copy link
Contributor Author

yea I just tried R# on the db functions xunit tests and I get a runtime error from R#. I guess it's command line time for me - flashbacks to college :)

@ErikEJ
Copy link
Contributor

ErikEJ commented Jul 4, 2017

So much life lost in stone-age debugging techniques...

@ajcvickers @divega Agree 100% - and sadly it looks like there have been gaps in the test matrix for EF Core preview 2, as it does not look like I will be able to ship a preview-2-final provider for SQLCE 😞 ErikEJ/EntityFramework.SqlServerCompact#463

  • no test of pure .NET 4.6.1 provider (both SQLite and SQL Server providers are .NET Standard)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
closed-no-further-action The issue is closed and no further action is planned.
Projects
None yet
Development

No branches or pull requests

5 participants