# SAVE PROJECT

**URL:** https://forum.alternetsoft.com/t/save-project/29
**Category:** AlterNET Studio Support
**Tags:** wpf
**Created:** [February 9, 2021, 12:00am UTC](https://forum.alternetsoft.com/t/save-project/29 "2021-02-09T00:00:00Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![johannes.rist](https://forum.alternetsoft.com/letter_avatar_proxy/v4/letter/j/606060/32.png) [@johannes.rist](https://forum.alternetsoft.com/u/johannes.rist)
#### Post date: [February 9, 2021, 12:00am UTC](https://forum.alternetsoft.com/t/save-project/29/1 "2021-02-09T00:00:00Z")

</div>

Hello,  
how can i save C# project changes (like a added Assembly Reference) using the dotNetProject class?  
Is there something similar to the TextEditor class like TextEditor.Source.SaveFile(yourFileName)?  
  
Regards,  
Johannes

---

<div class="post-metadata">

### Author: ![dmitry.medvedev](https://forum.alternetsoft.com/user_avatar/forum.alternetsoft.com/dmitry.medvedev/32/27_2.png) [@dmitry.medvedev](https://forum.alternetsoft.com/u/dmitry.medvedev)
#### Post date: [February 10, 2021, 12:00am UTC](https://forum.alternetsoft.com/t/save-project/29/2 "2021-02-10T00:00:00Z")

</div>

Hi,  
Project.Save is implemented as extension method in Alternet.Editor.Roslyn assembly  
You will need to add reference to this assembly to your project and add Alternet.Editor.Roslyn namespace to using section, then you can call this method.  
Hope it helps,  
Dmitry

---

<div class="post-metadata">

### Author: ![johannes.rist](https://forum.alternetsoft.com/letter_avatar_proxy/v4/letter/j/606060/32.png) [@johannes.rist](https://forum.alternetsoft.com/u/johannes.rist)
#### Post date: [February 10, 2021, 12:00am UTC](https://forum.alternetsoft.com/t/save-project/29/3 "2021-02-10T00:00:00Z")

</div>

Hello,  
thanks for the information.  
Sadly the Save() functionality is not supported for .NET Core.   
Is there a alternartive to save a project to the file system, if modified with .NET Core?  
Regards, Johannes

---

<div class="post-metadata">

### Author: ![dmitry.medvedev](https://forum.alternetsoft.com/user_avatar/forum.alternetsoft.com/dmitry.medvedev/32/27_2.png) [@dmitry.medvedev](https://forum.alternetsoft.com/u/dmitry.medvedev)
#### Post date: [February 11, 2021, 12:00am UTC](https://forum.alternetsoft.com/t/save-project/29/4 "2021-02-11T00:00:00Z")

</div>

Hi,  
We tried to implement project saving for .NET core and SDK-style projects as well, it required newer version of Microsoft Build Tools (14.0) to work. However it caused some side effects on user machines.  
We raised this issue with Microsoft, but it does not seem to be a good solution here. Please refer to the following discussion here:  
[https://github.com/dotnet/msbuild/issues/5913#issuecomment-746625619](https://github.com/dotnet/msbuild/issues/5913#issuecomment-746625619)  
Regards,  
Dmitry

---

<div class="post-metadata">

### Author: ![dmitry.medvedev](https://forum.alternetsoft.com/user_avatar/forum.alternetsoft.com/dmitry.medvedev/32/27_2.png) [@dmitry.medvedev](https://forum.alternetsoft.com/u/dmitry.medvedev)
#### Post date: [February 11, 2021, 12:00am UTC](https://forum.alternetsoft.com/t/save-project/29/5 "2021-02-11T00:00:00Z")

</div>

Alternative would be to form XML document manually to save the project, similarly to how we load project from XML in DotNetProjectExtension.   
We might be able to provide our own SaveProject implementation in the next update.  
Regards,  
Dmitry
