Solve the conflict method of developing web applications and Subversion with vs.net

zhaozj2021-02-08  356

Since Subversion will create a .svn hidden folder to store related information under each folder, Windows is not allowed to "." The file name begins (the underlying should be allowed, otherwise this folder is probably unable to build ), So when you open a web application with VS.NET (but other types of applications will not be wrong ...), although it does not seem to affect normal work, but every time you see this error message Will feel very uncomfortable :-P, so search on Google, found two workarounds, the method is one: Rename.

Establish two .cmd batch files:

Hide-svn.cmd:

@Echo offfor / r %% f in (.svn) Do if EXIST "%% f" (attrib -h "%% f" rename "%% f" _svn)

2. RESTORE-SVN.CMD:

@Echo offfor / r %% f in (_svn) do if exist "%% f" (rename "%% f". SVN Attrib h "%% ~ pf / .svn")

These two files are still very simple, and each time you modify the application before you change all the .svn directory into _svn, modify the end Execution RESTORE-SVN.cmd will change all the _svn directories back. SVN I.e.

But this is still a bit trouble, in fact, there is still a solution to the way, the method 2: conversion.

Continued ... ^ o ^

转载请注明原文地址:https://www.9cbs.com/read-86.html

New Post(0)