MonoDevelop.AddinMaker icon indicating copy to clipboard operation
MonoDevelop.AddinMaker copied to clipboard

Remove Entry Added in Xamarin Forms Project

Open kalirajanganesan opened this issue 6 years ago • 4 comments

Hi @mhutch / @mrward ,

We created the visualstudio mac extension file (mac) using addin maker for adding some files in the project We are using the below codes for add the files to project

Options 1:

IdeApp.ProjectOperations.AddFilesToProject(DotNetProject project,FilePath[] files, FilePath[] Targetdirectory, string buildAction);

Option 2:

project.AddFile(string File, string buildAction);

While adding the files to project remove entry added for some files like below image.

image

Could you please help to overcome that issue or else share the information any other options to add the project?

Note : This issue Randomly occurred not occured every time

kalirajanganesan avatar Nov 18 '19 04:11 kalirajanganesan

I think this is a bug in VS Mac. Do you have a good way to reproduce this?

mrward avatar Nov 18 '19 12:11 mrward

Hi @mrward ,

The issue occurred in normal Microsoft project.

Reproducing steps:

  • create blank forms Application in Multiplatform/App category
  • After that create the normal folder in project location
  • Then copy Appxamlfile and Appxamlfile.cs and move to the folder which was newly created
  • After that try to install any one of the nuget packages from nuget.org
  • Then project file changed like below image

image

kalirajanganesan avatar Nov 20 '19 13:11 kalirajanganesan

I too facing this same problem even adding the XAML file from Add new item. Do we have a solution for this?

Kannan1015 avatar Nov 22 '19 05:11 Kannan1015

I can only reproduce this when the .xaml and .xaml.cs file are moved outside VS Mac. Doing the same thing inside the IDE does not show this problem. Thanks to @Kannan1015 for providing a screen recording.

This problem is being tracked on the Developer Community site:

https://developercommunity.visualstudio.com/content/problem/831208/xaml-file-getting-removed-when-installing-the-nuge.html

I think we can close this one on GitHub since it is not an Addin Maker bug.

mrward avatar Nov 26 '19 10:11 mrward