Bug 40915

Summary: Assembly Reference Aliases are not support
Product: [Desktop] Xamarin Studio Reporter: Marek Safar <masafa>
Component: C# BindingAssignee: Mike Krüger <mkrueger>
Severity: normal CC: danisha, lluis, mono-bugs+monodevelop
Priority: Normal    
Version: Trunk   
Target Milestone: C7SR1   
Hardware: PC   
OS: Mac OS   
Tags: Is this bug a regression?: ---
Last known good build:
Attachments: Aliases

Description Marek Safar 2016-05-05 18:58:21 UTC
For .csproj with settings like

    <Reference Include="System">

XS does not display, allow to edit or even use Aliases values for compilation.
Comment 1 Lluis Sanchez 2016-05-06 11:34:52 UTC
I added support for editing in the property pad. Compilation works fine, xbuild takes care of it. However, looks like that aliases argument is not sent to roslyn, since in the "extern alias" declaration it complains about the alias not being defined. Reassigning to C# binding.
Comment 2 Mike Krüger 2016-05-09 06:03:11 UTC
I have this method:

public Task<IEnumerable<string>> GetReferencedAssemblies (ConfigurationSelector configuration, bool includeProjectReferences)

How do I get the aliases with that ? Right they're missing there.
Comment 3 Marek Safar 2016-05-09 06:18:52 UTC
What info am I supposed to provide?
Comment 4 Mike Krüger 2016-05-09 06:26:10 UTC
Was more something for lluis :) - the project system is missing the required information from my side :/
Comment 5 xamarin-release-manager 2016-05-17 07:00:51 UTC
Fixed in version (master)

Author: Mike Kr??ger
Commit: efbb038d92732ca88993fddf69faa3ab1eadf6b0 (mono/monodevelop)
Comment 6 xamarin-release-manager 2016-06-10 07:44:53 UTC
Fixed in version (cycle7)

Author: Lluis Sanchez
Commit: 112ee0037a2c042c1ba2356eb66f5378bd317fb5 (mono/monodevelop)
Comment 7 xamarin-release-manager 2016-06-15 18:45:31 UTC
Fixed in version (cycle7-app-insights-rebased)

Author: Lluis Sanchez
Commit: 112ee0037a2c042c1ba2356eb66f5378bd317fb5 (mono/monodevelop)
Comment 8 Danish Akhtar 2016-06-22 09:01:01 UTC
@Marek: I have tried to reproduce this issue but not sure about how to create Aliases in XS. So I have followed the steps mentioned here in https://blogs.msdn.microsoft.com/ansonh/2006/09/27/extern-alias-walkthrough.

I am successfully able to create Alias in VS by right clicking on References->properties->Aliases but I am not getting this option in XS.

Could you please suggest me, How should I create Aliases in XS? So that I can reproduce this issue and verified at our end.

I am also attaching my test project which I was created in VS.

Comment 9 Danish Akhtar 2016-06-22 09:01:42 UTC
Created attachment 16436 [details]