Show the software- artifacts and dotnettry –part 6
So I was about artifacts – what if I put the console as an artifact , to can show the work to other people ? Read about artifacts at Github Actions at https://help.github.com/en/github/automating-your-workflow-with-github-actions/persisting-workflow-data-using-artifacts . Seems easy. One indentation problem later and I have a 34 MB application that is attached to the current action and it is listing the exchange rates . Good.
Now , after I have a working copy, I want to write all the ideas that this exchange rates application can do – put those on GitHub Issues – see https://github.com/ignatandrei/InfoValutar/issues
Let’s try this: https://github.com/ignatandrei/InfoValutar/issues/3 . : I want to others to play with my application – and dotnetry is an obvious choice.
Created a ConsoleDOS.md with the following
“`cs –source-file ./../InfoValutar/InfoValutarDOS/Program.cs –project ./../InfoValutar/InfoValutarDOS/InfoValutarDOS.csproj
Running dotnet try in the folder shows the file, however , when running the program, error occurs
Program.cs(18,13): error CS8652: The feature ‘async streams’ is currently in Preview and *unsupported*. To use Preview features, use the ‘preview’ language version.
What? The project is compiling ok…
Trying to run the latest version of dotnet try
dotnet tool install -g –add-source “https://dotnet.myget.org/F/dotnet-try/api/v3/index.json” dotnet-try
and running my project again shows a different error:
Unhandled Exception: Unhandled exception. System.Net.Http.HttpRequestException: The SSL connection could not be established, see inner exception. ---> System.Security.Authentication.AuthenticationException: Authentication failed, see inner exception. ---> System.ComponentModel.Win32Exception (0x80090304): The Local Security Authority cannot be contacted --- End of inner exception stack trace ---
Now it is time to solve this!
Apparently, reading again https://bnro.ro/Cursurile-pietei-valutare-in-format-XML-3424.aspx shows that needs TLS1.2
So this is the solution:
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12 | SecurityProtocolType.Tls11 | SecurityProtocolType.Tls;And one hour passes...
(This is the result of 1 hour per day auto-challenge as a full cycle developer for an exchange rates application)