Bug 25911 - MD breaks "$(OutputPath)" formatting in ItemGroup Include
Summary: MD breaks "$(OutputPath)" formatting in ItemGroup Include
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Visual Studio Compatibility ()
Version: 5.5
Hardware: PC Linux
: Normal normal
Target Milestone: Roslyn
Assignee: Bugzilla
Depends on:
Reported: 2015-01-11 15:55 UTC by Martin Lantzsch
Modified: 2015-11-27 07:09 UTC (History)
3 users (show)

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 Developer Community or GitHub 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 Martin Lantzsch 2015-01-11 15:55:16 UTC
Create a project and add the following code to the ".csproj" file.

  <BinFiles Include="$(OutputPath)**\*.dll" />

now add some classes (or do anything, to force .csproj saving) and look at the added xml node:

Before:  <BinFiles Include="$(OutputPath)**\*.dll" />
After:   <BinFiles Include="%24%28OutputPath%29**\*.dll" />

now, neither Visual Studio 2013, nor Team Foundation Server 2013 will build the project file anymore.

The team foundation server error message clearifies, that he tries to find a file named "$(OutputPath)**\*.dll":
"The file "$(OutputPath)**\*.dll" could not be copied to "C:\[Snip]\bin\Debug\*.dll". Illegal char in the path." (Free translated from the german error message).

My Expected result was: Don't touch these lines and don't encode the value of the include attribute.
Comment 1 Lluis Sanchez 2015-04-08 16:15:13 UTC
Fixed in version (new-project-model)
Comment 2 Arpit Jha 2015-11-27 07:09:44 UTC
Reproduce Steps

I have checked this issue with  XS 5.8.443 and able to reproduce this issue with the help of bug description.

Screencast: http://www.screencast.com/t/MBMLkokJUt

Verify Status

I have checked the same with Roslyn Latest XS XamarinStudio- and its working fine.

Screencast:  http://www.screencast.com/t/xFHnuvYd

Hence closing this issue.

Environment Info:
=== Xamarin Studio ===

Version 6.0 (build 2066)
Installation UUID: 3d25a767-a003-4a7d-9f5e-e57987cf6cf0
	Mono 4.2.1 (explicit/6dd2d0d)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 402010102

=== Xamarin.Profiler ===

Location: /Applications/Xamarin Profiler.app/Contents/MacOS/Xamarin Profiler

=== Apple Developer Tools ===

Xcode 7.1 (9079)
Build 7B91b

=== Xamarin.iOS ===

Version: (Trial Edition)
Hash: 98b718a
Branch: master
Build date: 2015-11-23 17:23:33-0500

=== Xamarin.Android ===

Version: (Trial Edition)
Android SDK: /Users/mac360_xamarin/Library/Developer/Xamarin/android-sdk-macosx
	Supported Android versions:
		2.3    (API level 10)
		4.0.3  (API level 15)
		4.1    (API level 16)
		4.4    (API level 19)
		4.4.87 (API level 20)
		5.0    (API level 21)
		5.1    (API level 22)
		6.0    (API level 23)

SDK Tools Version: 24.4
SDK Platform Tools Version: 23.0.1
SDK Build Tools Version: 23

Java SDK: /usr
java version "1.7.0_71"
Java(TM) SE Runtime Environment (build 1.7.0_71-b14)
Java HotSpot(TM) 64-Bit Server VM (build 24.71-b01, mixed mode)

=== Xamarin Android Player ===

Version: 0.6.1
Location: /Applications/Xamarin Android Player.app

=== Xamarin.Mac ===

Not Installed

=== Build Information ===

Release ID: 600002066
Git revision: 31d97394decef4765c6dfd44b5bc522e3558f2ca
Build date: 2015-11-27 01:31:33-05
Xamarin addins: e1442d3eeba14d5454ce984c8fc5f388f9e1a3ca
Build lane: monodevelop-lion-roslyn

=== Operating System ===

Mac OS X 10.10.5
Darwin mac360-xamarins-Mac-mini.local 14.5.0 Darwin Kernel Version 14.5.0
    Wed Jul 29 02:26:53 PDT 2015
    root:xnu-2782.40.9~1/RELEASE_X86_64 x86_64