Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove Entry Added in Xamarin Forms Project #78

Open
kalirajanganesan opened this issue Nov 18, 2019 · 4 comments
Open

Remove Entry Added in Xamarin Forms Project #78

kalirajanganesan opened this issue Nov 18, 2019 · 4 comments

Comments

@kalirajanganesan
Copy link

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

@mrward
Copy link
Contributor

mrward commented Nov 18, 2019

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

@kalirajanganesan
Copy link
Author

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

@Kannan1015
Copy link

Kannan1015 commented Nov 22, 2019

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

@mrward
Copy link
Contributor

mrward commented Nov 26, 2019

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants