-
Notifications
You must be signed in to change notification settings - Fork 90
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
.NET 5.0 apps do not build #446
Comments
We have created an issue in Pivotal Tracker to manage this: https://www.pivotaltracker.com/story/show/179702635 The labels on this github issue will be updated when the story is started. |
this issue blocks #455 |
Investigated this pretty thoroughly, and by following the docs to specify a SDK version via For example: dotnet-core:
sdk: 5.0
Using something like the above, it behaves as if it were This route seems to be expected when wanting an SDK version different from the default (3.1). There are more sophisticated routes we could consider that could improve the UX -- like:
For this story, however, it comes down to using As far as what cc: @shanks3012 |
Also note that the docs are currently off slightly, as they specify an order of precedence for the SDK version:
Options 1 and 2 will work, but the behavior of falling back to an fsproj file is not currently in the buildpack. However, before that logic was removed, it was still very basic: it only used the presence of this file and used a hard-coded SDK value ( |
UPDATE:
Actually, I noticed from the previously-mentioned diff that we do maintain the necessary reverse-lookup. I'll dig further to see if we still use it in our code -- and if not, I'll try to see why/when that changed... |
OK, captured the better UX in #460. I'm going to close out this issue as there is a sensible way to get .NET 5 source-based apps to stage (i.e. add Note, I also tried pushing published .NET 5 apps and they work with no problems (i.e. staged successfully, can interact with pushed app in web browser):
|
What version of Cloud Foundry and CF CLI are you using?
What version of the buildpack you are using?
If you were attempting to accomplish a task, what was it you were attempting to do?
Is your dotnet app unpublished, platform-dependant, or self-contained?
What did you expect to happen?
What was the actual behavior?
It appears that the buildpack is incorrectly installing
dotnet-sdk 3.1.412
anddotnet-runtime 3.1.18
during theSupply
phase, but then corrects itself and installsdotnet-runtime 5.0.9
duringFinalize
. Thedotnet-sdk
version is never fixed, which causes it to fail.It looks like when .NET Core version 5.0 was added to the buildpack, changes were made to finalize, but nowehere else.
I would expect the implementation of this issue is two-fold:
Please confirm where necessary:
The text was updated successfully, but these errors were encountered: