Closed Hobray closed 6 years ago
We have created an issue in Pivotal Tracker to manage this:
https://www.pivotaltracker.com/story/show/159041833
The labels on this github issue will be updated when the story is started.
This is now prioritized. Sorry for the delay.
What version of Cloud Foundry and CF CLI are you using? (i.e. What is the output of running
cf curl /v2/info && cf version
? 6.32.0What version of the buildpack you are using? 2.1.4
If you were attempting to accomplish a task, what was it you were attempting to do? Push application to CF
What did you expect to happen? Successful push
What was the actual behavior? The following container compilation failure:
Steps to reproduce the error
I have to preface this by stating that I know exactly what is causing the error and how to get around it but I struggled to find helpful documentation on the cause so I wanted to file this issue in case it can be resolved on the Cloud Foundry end. If it cannot, hopefully this documentation will keep someone else from beating their head against the wall like I did.
In my case, I had installed the dotnet core 2.1.301 SDK but still have applications that are targeting the 2.0 framework. While it may not always be necessary to force these older applications to build/publish using an older SDK version, a "global.json" file can be used to force the desired SDK version to be used. With that in mind, do the following to reproduce this error:
applications:
env: ASPNETCORE_ENVIRONMENT: Development
As you can see, all of the appsetting documents, the global and even the web.config have byte order marks in this case. I ONLY needed to ensure that the global.json wasn't using a byte order mark to get my push to succeed. None of the other files mattered when it came to successfully pushing.
At any rate, this is a pretty slick way to identify any other possible stragglers that might have an impact.
Please confirm where necessary: