-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix performance issue where receive a very long log message in debug …
…version.
- Loading branch information
1 parent
8cb243f
commit 416ec27
Showing
6 changed files
with
99 additions
and
87 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,22 @@ | ||
[Bb]in/ | ||
[Oo]bj/ | ||
[Ww]orking*/ | ||
Build/runbuild.txt | ||
Doc/doc.shfbproj_* | ||
TestResults/ | ||
AppPackages/ | ||
*.suo | ||
*.user | ||
*.userprefs | ||
_ReSharper.* | ||
*.ReSharper.user | ||
*.resharper.user | ||
project.lock.json | ||
*.xproj | ||
.vs/ | ||
*.props | ||
*.targets | ||
|
||
#NuGet | ||
packages | ||
[Bb]in/ | ||
[Oo]bj/ | ||
[Ww]orking*/ | ||
Build/runbuild.txt | ||
Doc/doc.shfbproj_* | ||
TestResults/ | ||
AppPackages/ | ||
*.suo | ||
*.user | ||
*.userprefs | ||
_ReSharper.* | ||
*.ReSharper.user | ||
*.resharper.user | ||
project.lock.json | ||
*.xproj | ||
.vs/ | ||
*.props | ||
*.targets | ||
|
||
#NuGet | ||
packages | ||
!packages/repositories.config |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,5 +28,5 @@ | |
// Build Number | ||
// Revision | ||
// | ||
[assembly: AssemblyVersion("2.1.2.0")] | ||
[assembly: AssemblyVersion("2.1.3.0")] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,50 +1,54 @@ | ||
|
||
####################### 引用common ####################### | ||
source "D:/Projects/XxcProjects/ShellScript/common.sh" | ||
|
||
####################### 初始化 ####################### | ||
# 当前目录被定义在 $startScriptDir 中 | ||
alanInit | ||
mydir=$startScriptDir | ||
|
||
####################### ####################### | ||
if [ "$msbuild" == "" ] ; then | ||
showErrorAndExit "系统环境变量msbuild必须设置到MSBuild.exe的路径" | ||
fi | ||
|
||
rm -rf d:/temp/Log2Window | ||
checkIfActionError "清空目录出错 $LINENO" | ||
rm -f d:/temp/Log2Window.zip | ||
checkIfActionError "删除文件出错 $LINENO" | ||
|
||
mkdir -p d:/temp/Log2Window | ||
mkdir -p d:/temp/Log2Window/ExampleProject | ||
"$msbuild" \ | ||
//t:rebuild \ | ||
/property:OutputPath=d:/temp/Log2Window \ | ||
/property:Configuration=Debug \ | ||
/property:DeployOnBuild=true \ | ||
"Log2Window\Log2Window.csproj" | ||
checkIfActionError "编译出错" | ||
|
||
cp -rf TestLog4net d:/temp/Log2Window/ExampleProject | ||
checkIfActionError "出错 $LINENO" | ||
cp -rf TestNLog d:/temp/Log2Window/ExampleProject | ||
checkIfActionError "出错 $LINENO" | ||
|
||
find d:/temp/Log2Window/ExampleProject -name "bin" -exec rm -rf {} \; | ||
find d:/temp/Log2Window/ExampleProject -name "obj" -exec rm -rf {} \; | ||
find d:/temp/Log2Window/ExampleProject -name "packages" -exec rm -rf {} \; | ||
|
||
mkdir d:/temp/Log2Window/bin | ||
mv d:/temp/Log2Window/*.dll d:/temp/Log2Window/bin | ||
mv d:/temp/Log2Window/*.xml d:/temp/Log2Window/bin | ||
|
||
cd d:/temp | ||
zip -r Log2Window.zip Log2Window | ||
checkIfActionError "压缩出错" | ||
cp -af d:/temp/Log2Window/. "D:/Users/Alan/Documents/YunPan/Program Files/Log2Window" | ||
checkIfActionError "出错 $LINENO" | ||
showInfo 全部完成. | ||
|
||
|
||
####################### 引用common ####################### | ||
source "/mnt/d/Projects/XxcProjects/ShellScript/common.sh" | ||
|
||
####################### 初始化 ####################### | ||
# 当前目录被定义在 $startScriptDir 中 | ||
alanInit | ||
mydir=$startScriptDir | ||
|
||
####################### ####################### | ||
readVarFromNT msbuild | ||
toBashPath msbuild | ||
"$msbuild" | ||
|
||
if [ "$msbuild" == "" ] ; then | ||
showErrorAndExit "系统环境变量msbuild必须设置到MSBuild.exe的路径" | ||
fi | ||
|
||
rm -rf /mnt/d/temp/Log2Window | ||
checkIfActionError "清空目录出错 $LINENO" | ||
rm -f /mnt/d/temp/Log2Window.zip | ||
checkIfActionError "删除文件出错 $LINENO" | ||
|
||
mkdir -p /mnt/d/temp/Log2Window | ||
mkdir -p /mnt/d/temp/Log2Window/ExampleProject | ||
"$msbuild" \ | ||
/t:rebuild \ | ||
/property:OutputPath=d:/temp/Log2Window \ | ||
/property:Configuration=Release \ | ||
/property:DeployOnBuild=true \ | ||
"Log2Window\Log2Window.csproj" | ||
checkIfActionError "编译出错" | ||
|
||
cp -rf TestLog4net /mnt/d/temp/Log2Window/ExampleProject | ||
checkIfActionError "出错 $LINENO" | ||
cp -rf TestNLog /mnt/d/temp/Log2Window/ExampleProject | ||
checkIfActionError "出错 $LINENO" | ||
|
||
find /mnt/d/temp/Log2Window/ExampleProject -name "bin" -exec rm -rf {} \; | ||
find /mnt/d/temp/Log2Window/ExampleProject -name "obj" -exec rm -rf {} \; | ||
find /mnt/d/temp/Log2Window/ExampleProject -name "packages" -exec rm -rf {} \; | ||
|
||
mkdir /mnt/d/temp/Log2Window/bin | ||
mv /mnt/d/temp/Log2Window/*.dll /mnt/d/temp/Log2Window/bin | ||
mv /mnt/d/temp/Log2Window/*.xml /mnt/d/temp/Log2Window/bin | ||
|
||
cd /mnt/d/temp | ||
zip -r Log2Window.zip Log2Window | ||
checkIfActionError "压缩出错" | ||
cp -af /mnt/d/temp/Log2Window/. "/mnt/d/Users/Alan/Documents/YunPan/Program Files/Log2Window" | ||
checkIfActionError "出错 $LINENO" | ||
showInfo 全部完成. | ||
|
||
read temp |