clairernovotny / MultiTargetTheWorld

13 stars 2 forks source link

Support for VS2017 RC.3 #1

Closed bangonkali closed 7 years ago

bangonkali commented 7 years ago

Failed build on VS 2017 RC3

1>------ Build started: Project: MultiTargetTheWorld, Configuration: Debug Any CPU ------
1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\Sdks\Microsoft.NET.Sdk\build\Microsoft.NET.Sdk.DefaultItems.targets(165,5): error : Duplicate 'Compile' items were included. The .NET SDK includes 'Compile' items from your project directory by default. You can either remove these items from your project file, or set the 'EnableDefaultCompileItems' property to 'false' if you want to explicitly include them in your project file. The duplicate items were: 'Greeter.cs'; 'Platforms\net45\PlatformGreeting.cs'
1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\Roslyn\Microsoft.CSharp.Core.targets(71,5): error MSB3105: The item "Greeter.cs" was specified more than once in the "Sources" parameter.  Duplicate items are not supported by the "Sources" parameter.
1>Done building project "MultiTargetTheWorld.csproj" -- FAILED.
========== Build: 0 succeeded or up-to-date, 1 failed, 0 skipped ==========

Dotnet version:

C:\Users\bango>dotnet --version
1.0.0-rc3-004530

C:\Users\bango>dotnet --info
.NET Command Line Tools (1.0.0-rc3-004530)

Product Information:
 Version:            1.0.0-rc3-004530
 Commit SHA-1 hash:  0de3338607

Runtime Environment:
 OS Name:     Windows
 OS Version:  10.0.14393
 OS Platform: Windows
 RID:         win10-x64
 Base Path:   C:\Program Files\dotnet\sdk\1.0.0-rc3-004530

VS2017 RC.3 version

Microsoft Visual Studio Community 2017 RC
Version 15.0.26127.0 D15REL
Microsoft .NET Framework
Version 4.6.01586

Installed Version: Community

Visual Basic 2017 RC   00369-50000-00000-AA297
Microsoft Visual Basic 2017 RC

Visual C# 2017 RC   00369-50000-00000-AA297
Microsoft Visual C# 2017 RC

Visual C++ 2017 RC   00369-50000-00000-AA297
Microsoft Visual C++ 2017 RC

Visual F# 4.1   00369-50000-00000-AA297
Microsoft Visual F# 4.1

Application Insights Tools for Visual Studio Package   8.5.10109.1
Application Insights Tools for Visual Studio

ASP.NET and Web Tools 2016   15.0.30124.0
ASP.NET and Web Tools 2016

ASP.NET Web Frameworks and Tools 2013   5.2.50105.0
For additional information, visit https://www.asp.net/

Azure App Service Tools v2.9.6   15.0.30118.0
Azure App Service Tools v2.9.6

Common Azure Tools   1.9
Provides common services for use by Azure Mobile Services and Microsoft Azure Tools.

Dotfuscator Community Edition   5.27.0.4679-release+ce-vs15.e4937ba.20161216.158
PreEmptive Protection - Dotfuscator CE

GitHub.VisualStudio   2.1.1.4
A Visual Studio Extension that brings the GitHub Flow into Visual Studio.

JavaScript Language Service   2.0
JavaScript Language Service

JavaScript Project System   2.0
JavaScript Project System

JetBrains ReSharper Ultimate 2016.3.1    Build 107.0.20161222.212756
JetBrains ReSharper Ultimate package for Microsoft Visual Studio. For more information about ReSharper Ultimate, visit http://www.jetbrains.com/resharper. Copyright © 2017 JetBrains, Inc.

KofePackagePackage Extension   1.0
KofePackagePackage Visual Studio Extension Detailed Info

Merq   1.1.13-dev15rc3 (7c81fb6)
Command Bus, Event Stream and Async Manager for Visual Studio extensions.

Microsoft MI-Based Debugger   1.0
Provides support for connecting Visual Studio to MI compatible debuggers

Microsoft Visual Studio VC Package   1.0
Microsoft Visual Studio VC Package

Mono Debugging for Visual Studio   Mono.Debugging.VisualStudio
Support for debugging Mono processes with Visual Studio.

Node.js Tools   1.3.41102.00
Adds support for developing and debugging Node.js apps in Visual Studio

Node.js Tools - Profiling   1.3.41102.00
Profiling support for Node.js projects.

NuGet Package Manager   4.0.0
NuGet Package Manager in Visual Studio. For more information about NuGet, visit http://docs.nuget.org/.

SQL Server Data Tools   15.1.61701.181
Microsoft SQL Server Data Tools

Syncfusion.VSExtension.Troubleshooter   14.1.0.41
Add-in for Troubleshooting the Syncfusion projects.

TypeScript   2.1.5.0
TypeScript tools for Visual Studio

Visual C++ for Cross Platform Mobile Development (Android)   15.0.26109.01
Visual C++ for Cross Platform Mobile Development (Android)

Visual C++ for Cross Platform Mobile Development (iOS)   15.0.26109.01
Visual C++ for Cross Platform Mobile Development (iOS)

Visual C++ for Linux Development   1.0.6
Visual C++ for Linux Development

Visual Studio tools for CMake   1.0
Visual Studio tools for CMake

Visual Studio Tools for Unity   2.8.1.0
Visual Studio Tools for Unity

Xamarin   4.3.0.598 (95cf4d3)
Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.

Xamarin.Android   7.1.0.19 (3d959b6)
Visual Studio extension to enable development for Xamarin.Android.

Xamarin.iOS   10.4.0.80 (1a042f0)
Visual Studio extension to enable development for Xamarin.iOS.
clairernovotny commented 7 years ago

The fix for these are to remove the default **\*.cs include. I'll update the samples

bangonkali commented 7 years ago

@onovotny Is this bug going to on VS2017 end or the projects? It seems they're changing stuff too fast considering we're at RC.

clairernovotny commented 7 years ago

This was caused by updates to the MSBuild SDK -- they have been moving more and more out of the csproj and into the SDK to minimize the contents of your project files. I believe most of these changes are done now.

clairernovotny commented 7 years ago

Fixed in https://github.com/onovotny/MultiTargetTheWorld/commit/4fb383fbd8be024e3ccd0024ddd68ca55cc56d94, thanks!