Skip to content

Instantly share code, notes, and snippets.

View davkean's full-sized avatar

David Kean davkean

View GitHub Profile
using System;
using System.Diagnostics;
using System.Threading;
using System.Threading.Tasks;

class Program
{
    static void Main(string[] args)
 {
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" InitialTargets="ValidateSolutionConfiguration;ValidateToolsVersions;ValidateProjects" DefaultTargets="Build">
<PropertyGroup>
<MSBuildExtensionsPath32>C:\Program Files (x86)\Microsoft Visual Studio\2019\master\MSBuild</MSBuildExtensionsPath32>
<MSBuildExtensionsPath>C:\Program Files (x86)\Microsoft Visual Studio\2019\master\MSBuild</MSBuildExtensionsPath>
<MSBuildToolsPath32>C:\Program Files (x86)\Microsoft Visual Studio\2019\master\MSBuild\Current\Bin</MSBuildToolsPath32>
<MSBuildToolsPath64>C:\Program Files (x86)\Microsoft Visual Studio\2019\master\MSBuild\Current\Bin\amd64</MSBuildToolsPath64>
<MSBuildSDKsPath>C:\Program Files (x86)\Microsoft Visual Studio\2019\master\MSBuild\Sdks</MSBuildSDKsPath>
<FrameworkSDKRoot>C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\</FrameworkSDKRoot>
<MSBuildRuntimeVersion>4.0.30319</MSBuildRuntimeVersion>
This file has been truncated, but you can view the full file.
<?xml version="1.0" encoding="IBM437"?>
<!--
============================================================================================================================================
c:\project-system\src\Microsoft.VisualStudio.Editors\Microsoft.VisualStudio.Editors.vbproj
============================================================================================================================================
-->
<!-- Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. -->
<Project DefaultTargets="Build" InitialTargets="ValidateMSBuildToolsVersion">
<!--
============================================================================================================================================
<!-- Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. -->
<!-- ======== C:\Program Files\dotnet\sdk\3.0.100-preview8-013437\Sdks\Microsoft.NET.Sdk\Sdk\Sdk.props ======= -->
<!--
***********************************************************************************************
Sdk.props
WARNING: DO NOT MODIFY this file unless you are knowledgeable about MSBuild and have
created a backup copy. Incorrect changes to this file will make it
impossible to load or build your projects from the command-line or the IDE.
<!--
============================================================================================================================================
C:\Users\davkean\Source\Repos\ClassLibrary45\ClassLibrary1\ClassLibrary1.fsproj
============================================================================================================================================
-->
<Project DefaultTargets="Build">
<!--
============================================================================================================================================
<Import Project="Sdk.props" Sdk="Microsoft.NET.Sdk">
This import was added implicitly because the Project element's Sdk attribute specified "Microsoft.NET.Sdk".

Framework menu doesn't show when using different friendly names of the same framework:

  1. Create two projects:
<TargetFrameworks>netcoreapp2.1;net4.6</TargetFrameworks>
<TargetFrameworks>netcoreapp2.1;net46</TargetFrameworks>

Expected: For the Framework menu to show

using System;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
using System.Globalization;
using System.Linq;
using System.Reflection;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using Xunit.Sdk;
<?xml version="1.0" encoding="IBM437"?>
<!--
============================================================================================================================================
C:\Users\davkean\Source\Repos\ClassLibrary45\ClassLibrary45\ClassLibrary45.fsproj
============================================================================================================================================
-->
<Project DefaultTargets="Build">
<!--
============================================================================================================================================
<Import Project="Sdk.props" Sdk="Microsoft.NET.Sdk">
<?xml version="1.0" encoding="IBM437"?>
<!--
============================================================================================================================================
E:\vspreviewcrash\dotnet\lib\Http\HttpFree.fsproj
============================================================================================================================================
-->
<Project>
<!--
============================================================================================================================================
<Import Project="Sdk.props" Sdk="Microsoft.NET.Sdk">

Console Application (.NET Framework)

msbuild.exe /nologo /m:1 /v:m /clp:Summary;PerformanceSummary "Project.csproj" /t:Rebuild
Scenario Inclusive (ms) Inclusive (%)
Evaluation 293 33%
Targets 452 52%