ScottHutchinson / sqlprovider-dotnetcore-demo

SQLProvider Example F# dotnet core project
0 stars 1 forks source link

Issues with solution #1

Open cartermp opened 6 years ago

cartermp commented 6 years ago

There are 2 problems with this solution which should be addressed

  1. Not all projects are linked in the solution file. When the solution is opened in VS, only the console project is loaded and it doesn't know where the other one is. The library must also be added to the solution file.
  2. The solution fails to build after adjusting the project files to be correct for my environment:
C:\repos\sqlprovider-dotnetcore-demo\sqlprovider-dotnetstandard-library>dotnet build
Microsoft (R) Build Engine version 15.6.82.30579 for .NET Core
Copyright (C) Microsoft Corporation. All rights reserved.

  Restore completed in 34.93 ms for C:\repos\sqlprovider-dotnetcore-demo\sqlprovider-dotnetstandard-library\sqlprovider-dotnetstandard-library.fsproj.
          1 file(s) copied.
C:\Program Files\dotnet\sdk\2.1.103\FSharp\Microsoft.FSharp.Targets(263,9): error MSB6006: "RunFsc.cmd" exited with code -1073741571. [C:\repos\sqlprovider-dotnetcore-demo\sqlprovider-dotnetstandard-library\sqlprovider-dotnetstandard-library.fsproj]

Build FAILED.

C:\Program Files\dotnet\sdk\2.1.103\FSharp\Microsoft.FSharp.Targets(263,9): error MSB6006: "RunFsc.cmd" exited with code -1073741571. [C:\repos\sqlprovider-dotnetcore-demo\sqlprovider-dotnetstandard-library\sqlprovider-dotnetstandard-library.fsproj]
    0 Warning(s)
    1 Error(s)

Time Elapsed 00:00:08.19

I'm not sure how this is built on your machine. Do you have additional things in your environment which this is implicitly depending on?

ScottHutchinson commented 6 years ago
  1. VS created the solution file automatically when I opened the console project. It did not automatically detect the reference to the library project, so I need to add it manually, but when I do that VS crashes.

  2. What you describe is what happens in VS Code. I am still trying to get the library project to build in any IDE. I don't understand why this code using the SQLProvider type provider will build in a console project, but when I moved it into a library project it refuses to build. VS crashes before I can try to build.

    ------ Original Message ------ Received: 01:55 AM PDT, 04/02/2018 From: Phillip Carter notifications@github.com To: ScottHutchinson/sqlprovider-dotnetcore-demo sqlprovider-dotnetcore-demo@noreply.github.com Cc: Subscribed subscribed@noreply.github.com Subject: [ScottHutchinson/sqlprovider-dotnetcore-demo] Issues with solution (#1)

    There are 2 problems with this solution which should be addressed

    Not all projects are linked in the solution file. When the solution is opened in VS, only the console project is loaded and it doesn't know where the other one is. The library must also be added to the solution file.
    The solution fails to build after adjusting the project files to be correct for my environment:

    C:\repos\sqlprovider-dotnetcore-demo\sqlprovider-dotnetstandard-library>dotnet build Microsoft (R) Build Engine version 15.6.82.30579 for .NET Core Copyright (C) Microsoft Corporation. All rights reserved.

    Restore completed in 34.93 ms for C:\repos\sqlprovider-dotnetcore-demo\sqlprovider-dotnetstandard-library\sqlprovider-dotnetstandard-library.fsproj. 1 file(s) copied. C:\Program Files\dotnet\sdk\2.1.103\FSharp\Microsoft.FSharp.Targets(263,9): error MSB6006: "RunFsc.cmd" exited with code -1073741571. [C:\repos\sqlprovider-dotnetcore-demo\sqlprovider-dotnetstandard-library\sqlprovider-dotnetstandard-library.fsproj]

Build FAILED.

C:\Program Files\dotnet\sdk\2.1.103\FSharp\Microsoft.FSharp.Targets(263,9): error MSB6006: "RunFsc.cmd" exited with code -1073741571. [C:\repos\sqlprovider-dotnetcore-demo\sqlprovider-dotnetstandard-library\sqlprovider-dotnetstandard-library.fsproj] 0 Warning(s) 1 Error(s)

Time Elapsed 00:00:08.19

  I'm not sure how this is built on your machine. Do you have additional things in your environment which this is implicitly depending on?

  —
    You are receiving this because you are subscribed to this thread.
    Reply to this email directly, view it on GitHub, or mute the thread.

   {"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/ScottHutchinson/sqlprovider-dotnetcore-demo","title":"ScottHutchinson/sqlprovider-dotnetcore-demo","subtitle":"GitHub repository","main_image_url":"https://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png","avatar_image_url":"https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png","action":{"name":"Open in GitHub","url":"https://github.com/ScottHutchinson/sqlprovider-dotnetcore-demo"}},"updates":{"snippets":[{"icon":"DESCRIPTION","message":"Issues with solution (#1)"}],"action":{"name":"View Issue","url":"https://github.com/ScottHutchinson/sqlprovider-dotnetcore-demo/issues/1"}}}