'System.IO.dll' could not be found error
EmilyGraceSeville7cf opened this issue · comments
Command mcs -target:exe -optimize -DEBUG -out:"BuildWeights.exe" -r:"System.dll" -r:"System.IO.dll" "BuildWeights.cs"
fails with error CS0006: Metadata file 'System.IO.dll' could not be found
in StyleTransfer-Colorization-SuperResolution/Colorization/2016. Colorful Image Colorization/Implementation
directory.
This problem affects the following script:
#!/usr/bin/env bash
shopt -s globstar
mcs -target:exe -optimize -DEBUG -out:"BuildWeights.exe" -r:"System.dll" -r:"System.IO.dll" "BuildWeights.cs"
mono BuildWeights.exe
rm -f "BuildWeights.exe" "BuildWeights.pdb"
mv "ColorfulImageColorization.model" "src/Resources/"
mkdir Release
csc -target:winexe -optimize -unsafe -out:"Release/Colorful Image Colorization.exe" -r:"System.dll" -r:"System.Drawing.dll" -r:"System.Threading.dll" -r:"System.Threading.Tasks.dll" -r:"System.IO.dll" -r:"System.Windows.Forms.dll" -r:"System.Reflection.dll" -resource:"src/Resources/ColorfulImageColorization.model" -resource:"src/Resources/MainIcon.jpg" -resource:"src/Resources/Original.jpg" $(find 'src/' -name '*.cs' | sed -r -e 's/^(.*)$/"\1"/; :x N; s/\n(.*)/ "\1"/; t x')
It is rewritten Compile.bat.
OS: Ubuntu 20.04 LTS
Resolution: remove -r:"System.IO.dll"
.