Closed WaldemarCoding closed 3 years ago
The VS2019 version seems to have changed somehow the behavior of the PostBuild copy event. Try the following:
@WaldemarCoding If you can solve the issue please feel free to make a PR
Manually copying the file works. I also was able to solve it by switching to xcopy. Source: StackOverflow
The PostBuild of OTB now looks like this
xcopy "$(TargetPath)" "..\..\..\bin\" /F /R /Y /I
xcopy "$(TargetDir)$(TargetName).lib" "..\..\lib\" /F /R /Y /I
instead of
copy "$(TargetPath)" ..\..\..\bin
copy "$(TargetDir)\$(TargetName).lib" ..\..\lib
Also notice that I removed the extra backslash between TargetDir and TargetName, as TargetName already contains the backslash and added quotes around the Destination.
@FischerSeb For the PR I would add VS2019 Versions of Projects and Solution:
VS2019 support is perfect. Please add the 5 files to the gitignore file.
Maybe you make a new release or tag? So someone can easily download the correct version. Current release is from April.
Latest Main branch 2>------ Build started: Project: OPCToolboxC++_VS2019, Configuration: Debug x64 ------ 2>LINK : fatal error LNK1104: cannot open file 'OTBx64.lib'
When I try to compile the OPCToolbox_VS2017.sln I get a Link Error for OTBD.lib file. I followed the _5._Compiling_the_OPC_Toolkitcore.md doc
I ran VS2019 16.11.2 in UserMode and AdminMode with the same result