Language construct | Lightweight syntax | Verbose syntax |
---|---|---|
This walkthrough is a beginner's guide to learning basic interactive concepts and how to navigate the C# Interactive Window. To learn more about the Interactive window, watch this video or check out our documentation.
Note: This walkthrough is adapted from Bill Chiles' original. Thanks, Bill!
With the new C# Interactive window, you get immediate feedback on what an expression will return or what an API call does. The Interactive window is much like the Immediate window, but the Interactive window has many improvements such as IntelliSense features and the ability to redefine functions and classes. After entering a code snippet at the REPL prompt, the code simply executes right away. You can enter statements and expressions, as well as class and function definitions. You do not need to create a project, defin
' Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. | |
Imports System.Drawing | |
Imports System.Windows.Forms | |
Imports EnvDTE | |
Imports Microsoft.VisualStudio.Editor | |
Imports Microsoft.VisualStudio.Shell.Interop | |
Imports VSLangProj80 | |
Namespace Microsoft.VisualStudio.Editors.PropertyPages |
<?xml version="1.0" encoding="utf-8"?> | |
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | |
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" /> | |
<PropertyGroup> | |
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> | |
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> | |
<ProjectGuid>{8466A4EB-38EA-437C-930E-F534B48FF536}</ProjectGuid> | |
<OutputType>Library</OutputType> | |
<AppDesignerFolder>Properties</AppDesignerFolder> | |
<RootNamespace>ClassLibrary3</RootNamespace> |
phases: | |
- phase: CD | |
queue: LEP | |
steps: | |
- task: PowerShell@1 | |
displayName: ExtConfigs_PreBuild.ps1 | |
inputs: | |
scriptType: filePath | |
scriptName: "$(repo.BuildScripts)/ExtConfigs_PreBuild.ps1" | |
arguments: '' |
PS C:\> netstat -an | select-string -pattern "listening" | |
TCP 0.0.0.0:80 0.0.0.0:0 LISTENING | |
TCP 0.0.0.0:81 0.0.0.0:0 LISTENING | |
TCP 0.0.0.0:135 0.0.0.0:0 LISTENING | |
TCP 0.0.0.0:383 0.0.0.0:0 LISTENING |
<Project Sdk="Microsoft.NET.Sdk.WindowsDesktop"> | |
<PropertyGroup> | |
<TargetFramework>netcoreapp3.1</TargetFramework> | |
<IsPackable>false</IsPackable> | |
<UseWindowsForms>true</UseWindowsForms> | |
</PropertyGroup> | |
<ItemGroup> |
Don't worry, I have curated the list to only list up-for-grab/help wanted issues that has no assignee and no PR linked if possible, so you'll start to hammer those keyboard to write a fix/feature/whatever code for PR :)
Here's the list:
- .NET Core Runtime: https://github.com/dotnet/runtime/issues?q=is%3Aopen+-linked%3Apr+no%3Aassignee+label%3Aup-for-grabs
- .NET Roslyn: https://github.com/dotnet/roslyn/issues?q=is%3Aissue+is%3Aopen+label%3A%22help+wanted%22+no%3Aassignee
- .NET Core WinForms: https://github.com/dotnet/winforms/issues?q=is%3Aissue+is%3Aopen+label%3Aup-for-grabs+no%3Aassignee
- ASP.NET Core: https://github.com/dotnet/aspnetcore/issues?q=is%3Aopen+is%3Aissue+label%3A%22help+wanted%22+no%3Aassignee
- powershell: | | |
$params = "$env:SONARQUBE_SCANNER_PARAMS" -replace '"sonar.branch.name":"[\w/,-.]*"\,?' | |
Write-Host "##vso[task.setvariable variable=SONARQUBE_SCANNER_PARAMS]$params" |