Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bugfix for Releases\CopyReleases.cmd #376

Open
MikeTheMechanic opened this issue Oct 28, 2015 · 0 comments
Open

Bugfix for Releases\CopyReleases.cmd #376

MikeTheMechanic opened this issue Oct 28, 2015 · 0 comments

Comments

@MikeTheMechanic
Copy link

With that file all dll's and pdb's are copied to a new Folder within the release folder; the name of that folder is generated from the current date and time. But: If the length differs from the desired one, the folder is not created as expected and thus the files are also not collected correctly.

Example:
It is 9:22:32 on 22.10.2015 --> new folder should be: 'release\20151022 92232'
but now two folders are created: 'release\20151022' and 'release\92232'
thus: The following copy commands fails...

Bugfix: Simply use "" for the pathfile and all is working as expected. Here is the file like it looks now on my side:

cd %1\Releases
set reldir=%DATE:~-4%%DATE:~3,2%%DATE:~0,2%%TIME:~0,2%%TIME:~3,2%%TIME:~6,2%%TIME:~9,2%
mkdir "%reldir%"
echo Destination path is: "%reldir%"
copy ..\Simple.Data\bin\Release\Simple.Data.dll "%reldir%"
copy ..\Simple.Data\bin\Release\Simple.Data.pdb "%reldir%"
copy ..\Simple.Data.AdapterApi\bin\Release\Simple.Data.AdapterApi.dll "%reldir%"
copy ..\Simple.Data.AdapterApi\bin\Release\Simple.Data.AdapterApi.pdb "%reldir%"
copy ..\Simple.Data.Ado\bin\Release\Simple.Data.Ado.dll "%reldir%"
copy ..\Simple.Data.Ado\bin\Release\Simple.Data.Ado.pdb "%reldir%"
copy ..\Simple.Data.SqlServer\bin\Release\Simple.Data.SqlServer.dll "%reldir%"
copy ..\Simple.Data.SqlServer\bin\Release\Simple.Data.SqlServer.pdb "%reldir%"
copy ..\Simple.Data.SqlCe35\bin\Release\Simple.Data.SqlCe35.dll "%reldir%"
copy ..\Simple.Data.SqlCe35\bin\Release\Simple.Data.SqlCe35.pdb "%reldir%"
copy ..\Simple.Data.SqlCe40\bin\Release\Simple.Data.SqlCe40.dll "%reldir%"
copy ..\Simple.Data.SqlCe40\bin\Release\Simple.Data.SqlCe40.pdb "%reldir%"
copy ..\Simple.Data.Mocking\bin\Release\Simple.Data.Mocking.dll "%reldir%"
copy ..\Simple.Data.Mocking\bin\Release\Simple.Data.Mocking.pdb "%reldir%"

Greetings
Mike

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant