Menu

#4 Can't build demo program

1.0
closed
None
2019-12-16
2019-12-13
No

I searched and searched for something like this and found nothing until I found your project here. It looks like it will meet my need nicely. (I'm writing an app for myself, so I can learn WinForms and other things.)

I downloaded the zip file and extracted everything. I ran the demo program, and everything looks pretty good!

But when I opened the solution in VS 2019, it wouldn't build. Looking at another ticket, I saw that I had to remove several of the source code files and re-add them. (Can you please update the solution in the zip file so others don't have this hassle?)

Then I tried again to build the demo program, but I received the following errors:

1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(5165,5): error MSB3073: The command "copy /y c:\opulos\core\UI\Accordion.cs c:\opulos\accordion\src\
1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(5165,5): error MSB3073: copy /y c:\opulos\core\UI\ResizeBar.cs c:\opulos\accordion\src\
1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(5165,5): error MSB3073: copy /y c:\opulos\core\UI\OpacityEx.cs c:\opulos\accordion\src\" exited with code 1.

First, the build should not contain commands to copy files from folders that users like me do not have.
Second, the build should not reference absolute paths that may not match the user's system.

Can you fix this in your solution and re-create the zip file?
In the meantime, can you please tell me how to fix this on my end?

Thanks, in advance.

Discussion

  • Opulos Inc.

    Opulos Inc. - 2019-12-13

    A new file (Accordion v2015.08.18b.zip) is available to download. It should be easy now, just open and run.

     
  • Todd Hoatson

    Todd Hoatson - 2019-12-14

    Thanks for your quick response! Sorry to say I still have a problem with the VS solution:

    C:\Users\Todd\AppData\Local\Temp\Temp1_Accordion v2015.08.18b.zip\Accordion.csproj : error : The project file could not be loaded. Could not find file 'C:\Users\Todd\AppData\Local\Temp\Temp1_Accordion v2015.08.18b.zip\Accordion.csproj'. C:\Users\Todd\AppData\Local\Temp\Temp1_Accordion v2015.08.18b.zip\Accordion.csproj

    I also tried the 2019 package - pretty much the same problem...

    Thanks for your help.

     
  • Opulos Inc.

    Opulos Inc. - 2019-12-14

    It might be an issue with different Visual Studio versions. Just start a new Windows Forms project, and then add all the .cs files to it. For v2019, adding a reference to "PresentationCore" is required. Good luck.

     
  • Todd Hoatson

    Todd Hoatson - 2019-12-15

    So sorry - I looked at the error message again and noticed the reference to Temp1_Accordion v2015.08.18b.zip. Very strange that this should be there. I can only guess that after extracting the contents of the zip file, I somehow clicked on the solution in the zip file rather than the one I extracted. I don't know how I could have blundered like this or missed the obvious clue in the error message, unless it was the cough medicine I was taking yesterday! Anyway, I have tried it again, and I was not only able to open the solution but also do a build without errors. Thanks!

     
  • Opulos Inc.

    Opulos Inc. - 2019-12-16
    • status: open --> closed
     

Log in to post a comment.