Bug 53231 - csc doesn't unify same file passed multiple times when one path is relative
Summary: csc doesn't unify same file passed multiple times when one path is relative
Alias: None
Product: Class Libraries
Classification: Mono
Component: mscorlib ()
Version: master
Hardware: PC Mac OS
: --- normal
Target Milestone: Untriaged
Assignee: Marek Safar
Depends on:
Reported: 2017-03-10 18:13 UTC by Alexander Köplinger [MSFT]
Modified: 2017-03-12 09:33 UTC (History)
2 users (show)

Tags: 2017-02
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on GitHub or Developer Community with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description Alexander Köplinger [MSFT] 2017-03-10 18:13:50 UTC

> public class A
> {
>     public static void Main(){}
> }

works (prints CS2002 warning):

> csc test.cs test.cs


> csc test.cs ../sourcefolder/test.cs
> test.cs(1,14): error CS0101: The namespace '<global namespace>' already contains a definition for 'A'

Tried with Mono master/d455c0d. Works with the csc included in .NET Core, so I assume it's our bug.
This turned up in the XA build today that Andi is trying to fix for 2017-02 (she'll deduplicate the files there for now).
Comment 1 Marek Safar 2017-03-12 09:33:01 UTC
Fixed in master and 2017-02 branch