Project.Save Method

Definition

Saves the project to a file.

Overloads

Save(TextWriter)

Saves the current contents of the project to a TextWriter object.

Save(String)

Saves the current contents of the project to an XML project file on disk. This method will NOT add the ?xml node if it's not already present

Save(String, Encoding)

Saves the current contents of the project to an XML project file on disk using the supplied encoding.

Save(TextWriter)

Source:
Project.cs

Saves the current contents of the project to a TextWriter object.

C#
public void Save(System.IO.TextWriter textWriter);

Parameters

textWriter
TextWriter

Applies to

MSBuild 17 i MSBuild (.NET Core) 17
Produkt Wersje
MSBuild 17
MSBuild (.NET Core) 17

Save(String)

Source:
Project.cs

Saves the current contents of the project to an XML project file on disk. This method will NOT add the ?xml node if it's not already present

C#
public void Save(string projectFileName);

Parameters

projectFileName
String

Applies to

MSBuild 17 i MSBuild (.NET Core) 17
Produkt Wersje
MSBuild 17
MSBuild (.NET Core) 17

Save(String, Encoding)

Source:
Project.cs

Saves the current contents of the project to an XML project file on disk using the supplied encoding.

C#
public void Save(string projectFileName, System.Text.Encoding encoding);

Parameters

projectFileName
String
encoding
Encoding

Applies to

MSBuild 17 i MSBuild (.NET Core) 17
Produkt Wersje
MSBuild 17
MSBuild (.NET Core) 17