You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
The executable generated from dotnet publish -r linux-x64 doesn't have "x" permission #1331
@kichalla This issue was present in Preview1 - do you know why it was not surfaced then and is surfacing only now? Is this because it was masked by the Nuget bug?
@livarcocc We should consider taking this for Preview2 SDK. What is the timeline for it?
@kichalla This issue was present in Preview1 - do you know why it was not surfaced then and is surfacing only now? Is this because it was masked by the Nuget bug?
Yes, this issue was masked by the Nuget bug. Also I couldn't report this earlier because I was waiting for a CLI which had this Nuget fix.
Run via dotnet testconsole.dll instead of testconsole directly
For standalone app, which is where this is a bug, this workaround is not correct. I think we should strive to get a fix in today so that we can have the potential to take in the SDK.
Soon (EOD); verifying fix. Planning on targeting master branch first.
There are two approaches to the implementation: use File.Copy(apphost, testconsole) to copy the permissions from apphost to the testconsole and then replace the contents, or do a raw chmod +x on testconsole. I'm taking the File.Copy approach as a raw chmod will introduce calls into unix interop assemblies which is riskier.
@livarcocc@nguerrera Can you please help @steveharter with the issues above and also help answer the question around Nuget version as we should be taking this fix for Preview2.
Activity
gkhanna79 commentedon Jun 12, 2017
@kichalla This issue was present in Preview1 - do you know why it was not surfaced then and is surfacing only now? Is this because it was masked by the Nuget bug?
@livarcocc We should consider taking this for Preview2 SDK. What is the timeline for it?
kichalla commentedon Jun 12, 2017
Yes, this issue was masked by the Nuget bug. Also I couldn't report this earlier because I was waiting for a CLI which had this Nuget fix.
steveharter commentedon Jun 12, 2017
I can confirm the repro steps (Ubuntu 14)
The workarounds for now:
chmod +x testconsoleor
dotnet testconsole.dllinstead of testconsole directlyI'll start working on the fix.
gkhanna79 commentedon Jun 12, 2017
For standalone app, which is where this is a bug, this workaround is not correct. I think we should strive to get a fix in today so that we can have the potential to take in the SDK.
@livarcocc which branch should @steveharter prepare the fix in?
gkhanna79 commentedon Jun 12, 2017
@steveharter Do you have an ETA on the PR?
steveharter commentedon Jun 12, 2017
Soon (EOD); verifying fix. Planning on targeting master branch first.
There are two approaches to the implementation: use File.Copy(apphost, testconsole) to copy the permissions from apphost to the testconsole and then replace the contents, or do a raw chmod +x on testconsole. I'm taking the File.Copy approach as a raw chmod will introduce calls into unix interop assemblies which is riskier.
steveharter commentedon Jun 13, 2017
See referenced PR; Tests are failing locally because the apphost being restored does not have the execute bit set. Need a newer version of NuGet?
Note: I must need permissions to the sdk repo as I can't modify any properties, including adding a reviewer.
gkhanna79 commentedon Jun 13, 2017
@livarcocc @nguerrera Can you please help @steveharter with the issues above and also help answer the question around Nuget version as we should be taking this fix for Preview2.
CC @leecow as well.
nguerrera commentedon Jun 13, 2017
It's possible that NuGet version in master is too old. We haven't RIed in a while. PR should target 2.0 branch
gkhanna79 commentedon Jun 13, 2017
Closing since the PR is now merged.
sayhicoelho commentedon Dec 14, 2018
@steveharter fixed my issue! thank you!
Update dependencies from https://github.com/dotnet/aspnetcore build 2…