# C# Visual Studio / VS Code ###### tags: `C#` `Visual Studio` `VS Code` # Visual Studio ## 2019 ### 2021/04/02 - ver. 16.8.6:  # VS Code ## Nuget  Command Palatte  --- ## Extension ## C/ C++ ### MS debugging  ### 3rd Party Project Generator    ## Node JS   ## C#  ## Java   ## Python   ## Widgets   --- # Create new project    --- # Add Library Project 2021/11/09, Virtual Studio 2019 #### C#, All platforms, Library --> Class library:   #### Target Framework --> .Net Core 3.1  ### Add project reference  ### Dependencies / Package  #### ``System.IO`` ver ``4.6.0``   #### ``System.IO.Ports`` ver ``6.0.0``   ## Add Existing Project into Current Solution #### 1. Solution --> Right Click:  #### 2. Add --> Existing Proejct:  #### 3. Brower the existing project folder and select ``*.csproj`` file  #### 4. Result:  ## Designer Preview #### [Introducing .NET Core Windows Forms Designer Preview 1](https://devblogs.microsoft.com/dotnet/introducing-net-core-windows-forms-designer-preview-1/)    the normal ``*.csproj`` file should look like: ``` <Project Sdk="Microsoft.NET.Sdk.WindowsDesktop"> <PropertyGroup> <OutputType>WinExe</OutputType> <TargetFramework>netcoreapp3.1</TargetFramework> <UseWindowsForms>true</UseWindowsForms> <ApplicationIcon /> <Win32Resource /> <SignAssembly>false</SignAssembly> <Platforms>AnyCPU;x86</Platforms> <AssemblyName>Kessil_AP9X</AssemblyName> </PropertyGroup> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'"> <PlatformTarget>x86</PlatformTarget> <OutputPath>D:\AP9X_PC_Tools\</OutputPath> </PropertyGroup> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x86'"> <PlatformTarget>x86</PlatformTarget> <OutputPath>output\</OutputPath> </PropertyGroup> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x86'"> <OutputPath>output\</OutputPath> <DefineConstants>DEBUG;TRACE</DefineConstants> </PropertyGroup> <ItemGroup> <ProjectReference Include="..\KessilSwFramework\KessilSwFramework.csproj" /> </ItemGroup> <ItemGroup> <Compile Update="Properties\Resources.Designer.cs"> <DesignTime>True</DesignTime> <AutoGen>True</AutoGen> <DependentUpon>Resources.resx</DependentUpon> </Compile> </ItemGroup> <ItemGroup> <EmbeddedResource Update="Properties\Resources.resx"> <Generator>ResXFileCodeGenerator</Generator> <LastGenOutput>Resources.Designer.cs</LastGenOutput> </EmbeddedResource> </ItemGroup> </Project> ``` __I have removed the below snippet:__ ``` <ItemGroup> <PackageReference Include="System.IO.Ports" Version="5.0.1" /> </ItemGroup> ``` ``` <ItemGroup> <Compile Update="KessilAp9xLuxFormSockets.cs"> <SubType>Form</SubType> </Compile> <Compile Update="KessilAp9xLuxFormDelegateImpl.cs"> <SubType>Form</SubType> </Compile> </ItemGroup> ``` --- ## Comment / uncomment a code snippet ### [5 Great Visual Studio Keyboard Shortcuts](https://vslive.com/Blogs/News-and-Tips/2015/04/5-VS-Keyboard-Shortcuts.aspx) * comment a code snippet: ``Ctrl + K + C`` * uncomment a code snippet: ``Ctrl + K + U``
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up