Skip to content

Instantly share code, notes, and snippets.

Avatar
🐢
Print debugging

Jason Freeberg JasonFreeberg

🐢
Print debugging
View GitHub Profile
@JasonFreeberg
JasonFreeberg / dotnetcore_exceptions.md
Created Aug 3, 2020
Errors from the .NET Core test app
View dotnetcore_exceptions.md

Build-time warning

##[warning]Startup.cs(34,56): warning CS0618: 'IHostingEnvironment' is obsolete: 'This type is obsolete and will be removed in a future version. The recommended alternative is Microsoft.AspNetCore.Hosting.IWebHostEnvironment.' [D:\a\github-action-testapp-dotnetcore\github-action-testapp-dotnetcore\github-action-testapp-dotnetcore.csproj]
##[warning]Startup.cs(30,55): warning CS0618: 'CompatibilityVersion.Version_2_2' is obsolete: 'This CompatibilityVersion value is obsolete. The recommended alternatives are Version_3_0 or later.' [D:\a\github-action-testapp-dotnetcore\github-action-testapp-dotnetcore\github-action-testapp-dotnetcore.csproj]
##[warning]Startup.cs(48,13): warning MVC1005: Using 'UseMvc' to configure MVC is not supported while using Endpoint Routing. To continue using 'UseMvc', please set 'MvcOptions.EnableEndpointRouting = false' inside 'ConfigureServices'. [D:\a\github-action-testapp-dotnetcore\github-action-testapp-dotnetcore\github-action-testapp-dotnetcore.csproj]
@JasonFreeberg
JasonFreeberg / replace_strings.js
Created Jun 29, 2020
Replace template strings in workflow files
View replace_strings.js
// Variables from APIs or user input
inputs = {
"web-app-name": "my_cool_webapp",
"azure-webapp-publish-profile-name": "pubProfile120931248234",
"branch": "master",
"java-version": "1.8",
"slot-name": "production",
}
View html_example.html
<!DOCTYPE html>
<html>
<head>
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js"
integrity="sha256-k2WSCIexGzOj3Euiig+TlR8gA0EmPjuc79OEeY5L45g="
crossorigin="anonymous"></script>
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
You can’t perform that action at this time.