" in front of the "" line; and finally restart the vs2010 software."/> " in front of the "" line; and finally restart the vs2010 software.">
search
HomeDevelopment ToolsVSCodeWhat should I do if vs2010 prompts that the project has expired?

What should I do if vs2010 prompts that the project has expired?

What should I do if vs2010 prompts that the project has expired?

Solution that always prompts that this project has expired when starting debugging

Recommended tutorial: vscode tutorial

What should I do if vs2010 prompts that the project has expired?

First of all, if the compilation fails in Visual Studio, then this prompt is normal.

Because this project has expired, it means that you have changed some files or project configurations or did not compile successfully last time. You need to recompile, otherwise debugging will cause errors.

If your last compilation passed and this prompt still appears when you press F5 to debug, there may be a problem.

If this problem occurs every time, then this solution is suitable for you.

Of course the solution is not to select "Don't show this dialog box again". This just doesn't show it, but it will be compiled first before starting each time it is debugged.

What we want is to stop compiling and start debugging directly.

First of all, this prompt means that visual studio found that some files have expired, but no files were found to be compiled during compilation, and even the output files were not regenerated. Doesn't this trick me?

Okay, actually it tricked me, this is a Visual studio bug. This problem generally does not occur on Visual studio 2005, but this problem will occur on Visual studio 2010. It is not clear for other versions.

Although it is a bug, it can be solved.

The reason for this bug is that Visual studio 2010 thinks that the deleted files in the project are expired. For example, a header file in the project has been deleted and Visual studio 2010 cannot find the header file. , it is considered expired, so every time VS is debugged, it thinks the project is expired and needs to be compiled first.

Then why no files were found to be compiled during compilation? The reason is that this header file is not used by any CPP or C file, so no files were found to be recompiled during compilation.

The principle of the bug is understood. The solution is to delete the header file in the VS project.

A stupid way is to click to open each header file in VS and find the one that cannot be opened.

A smart way is to write a script to parse the project file and then verify whether the file exists.

Another way is to view it through DebugView.

The following introduces one such solution.

1. Open the devenv.exe.config file (this file is in %ProgramFiles%\Microsoft Visual Studio 10.0\Common7\IDE\ or %ProgramFiles(x86)%\Microsoft Visual Studio 10.0\Common7\IDE\ )

2. Add

<system.diagnostics>
<switches>
<add name=”CPS” value=”4″ />
</switches>
</system.diagnostics>

3. Restart Visual Studio

4. Open DbgView (Download address: http:// technet.microsoft.com/en-us/sysinternals/bb896647), check: Menu-》Capture-》Capture Win32 and Menu-》Capture-》Capture Events

5. Click F5 to start debugging, and a prompt will appear Stop when "This project has expired"

6. Press ctrl F in the DbgView window to find "not up to date", and find such as:

[120] Project 'D:\cache\ test1\test1.vcxproj' not up to date because build input 'D:\CACHE\TEST1\FUN1.H' is missing.

7. At this time, the key file FUN1.H is found. As long as the project Just remove this file and compile it again.

The above is the detailed content of What should I do if vs2010 prompts that the project has expired?. For more information, please follow other related articles on the PHP Chinese website!

Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Visual Studio: Exploring the Free and Paid OfferingsVisual Studio: Exploring the Free and Paid OfferingsApr 22, 2025 am 12:09 AM

The main difference between the free and paid versions of VisualStudio is the richness of features and the service supported. The free version (Community) is suitable for individual developers and small teams, providing basic development tools; the paid version (Professional and Enterprise) provides advanced features such as advanced debugging and team collaboration tools, suitable for large projects and enterprise-level development.

Visual Studio Community Edition: The Free Option ExplainedVisual Studio Community Edition: The Free Option ExplainedApr 21, 2025 am 12:09 AM

VisualStudioCommunityEdition is a free IDE suitable for individual developers, small teams and educational institutions. 1) It provides functions such as code editing, debugging, testing and version control. 2) Based on the Roslyn compiler platform, it supports multiple programming languages ​​and integrates Git and TFVC. 3) Advanced features include unit testing, optimization suggestions include turning off unnecessary extensions and using a lightweight editor.

Visual Studio: Building Applications with EaseVisual Studio: Building Applications with EaseApr 20, 2025 am 12:09 AM

VisualStudio is an integrated development environment (IDE) developed by Microsoft, which supports a variety of programming languages, including C#, C, Python, etc. 1. It provides IntelliSense function to help write code quickly. 2. The debugger allows setting breakpoints, step-by-step code execution, and identifying problems. 3. For beginners, creating a simple console application is a great way to get started. 4. Advanced usage includes the application of design patterns such as project management and dependency injection. 5. Common errors can be solved step by step through debugging tools. 6. Performance optimization and best practices include code optimization, version control, code quality inspection and automated testing.

Visual Studio and VS Code: Understanding Their Key DifferencesVisual Studio and VS Code: Understanding Their Key DifferencesApr 19, 2025 am 12:16 AM

VisualStudio is suitable for large-scale projects and enterprise-level application development, while VSCode is suitable for rapid development and multilingual support. 1. VisualStudio provides a comprehensive IDE environment and supports Microsoft technology stack. 2.VSCode is a lightweight editor that emphasizes flexibility and scalability, and supports cross-platform.

Is Visual Studio Still Free? Understanding the AvailabilityIs Visual Studio Still Free? Understanding the AvailabilityApr 18, 2025 am 12:05 AM

Yes, some versions of VisualStudio are free. Specifically, VisualStudioCommunityEdition is free for individual developers, open source projects, academic research, and small organizations. However, there are also paid versions such as VisualStudioProfessional and Enterprise, suitable for large teams and enterprises, providing additional features.

Using Visual Studio: Developing Software Across PlatformsUsing Visual Studio: Developing Software Across PlatformsApr 17, 2025 am 12:13 AM

Cross-platform development with VisualStudio is feasible, and by supporting frameworks like .NETCore and Xamarin, developers can write code at once and run on multiple operating systems. 1) Create .NETCore projects and use their cross-platform capabilities, 2) Use Xamarin for mobile application development, 3) Use asynchronous programming and code reuse to optimize performance to ensure efficient operation and maintainability of applications.

How to format json with vscodeHow to format json with vscodeApr 16, 2025 am 07:54 AM

The ways to format JSON in VS Code are: 1. Use shortcut keys (Windows/Linux: Ctrl Shift I; macOS: Cmd Shift I); 2. Go through the menu ("Edit" > "Format Document"); 3. Install JSON formatter extensions (such as Prettier); 4. Format manually (use shortcut keys to indent/extract blocks or add braces and semicolons); 5. Use external tools (such as JSONLint and JSON Formatter).

How to compile vscodeHow to compile vscodeApr 16, 2025 am 07:51 AM

Compiling code in VSCode is divided into 5 steps: Install the C extension; create the "main.cpp" file in the project folder; configure the compiler (such as MinGW); compile the code with the shortcut key ("Ctrl Shift B") or the "Build" button; run the compiled program with the shortcut key ("F5") or the "Run" button.

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

DVWA

DVWA

Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software

VSCode Windows 64-bit Download

VSCode Windows 64-bit Download

A free and powerful IDE editor launched by Microsoft

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

SAP NetWeaver Server Adapter for Eclipse

SAP NetWeaver Server Adapter for Eclipse

Integrate Eclipse with SAP NetWeaver application server.

Dreamweaver Mac version

Dreamweaver Mac version

Visual web development tools