What is gpstate file in ASP.NET

In my project I found a .gpState file in the folder, What is the purpose of gpState file?


I have never seen such a file in an ASP.NET app. Are you sure it is from ASP.NET?

Edit: it seems this file comes form the Guidance Automation Toolkit (whatever that is).

Quote from the page linked:

As a developer uses a Guidance Package in their Visual Studio Solution, the Guidance Automation Extensions will store information about how the Guidance Package is used in the solution into a file named <SolutionName>.gpstate in the solution folder. The following information is stored in the .gpstate file:

  • Bound references and their initial state
  • Unbound references and their initial state
  • A list of Guidance Packages that have been enabled on the solution (with version numbers)
  • For each Guidance Package, a flag that says if the binding recipe has been executed for that Guidance Package
  • Version information for the Guidance Package

You should not delete the .gpstate file, because it will cause the solution to lose this information.

By default, the .gpstate file is not added as a solution item in the Visual Studio solution. If a team of developers is working on the same solution and the team wants to share Guidance Package state, the .gpstate file can be added to the solution and checked into source control. If several developers make changes to the Guidance Package state in their solutions at the same time, it will be necessary to merge the changes in the .gpstate file when it is checked in. Another important consideration when using Guidance Packages in a team environment is ensuring that each developer has every Guidance Package required by the solution installed, and that the versions are the same. If there is a mismatch between Guidance Packages or versions installed by different developers, the Guidance Automation Extensions will delete any state that applies to Guidance Packages that are not installed.

Yes the file comes from GAT

This is what is in it:

`<?xml version="1.0" encoding="utf-8"?>
<GuidancePackagesState xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/pag/gax-gpstate">
  <Packages />

Agree with all other answers. I like better the explanation quoted in this answer from user lgpanaro, straight from patterns & practices forum. Especially the bulleted list, it makes one understand whether you want to check-in those files or not.

And BTW, I think one should.

Need Your Help

How to get “type” of a request - web service (ASMX)

c# asp.net vb.net web-services asmx

I want to log the "type of" request that access my simple ASMX page. How would I be able to do this?

Parsing content of an uploaded file in POST method

html c cgi

How can I remove the unnecessary parts of an uploaded file content? I am using an HTML form file upload to get the file. But after submitting the file and using CONTENT_LENGTH , it seems to have ex...

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.