lefthandedgoat / canopy

f# web automation and testing library, built on top of Selenium (friendly to c# also)
http://lefthandedgoat.github.io/canopy/
MIT License
507 stars 115 forks source link

reconfigured proj files to not use the package rebuild #517

Closed fischgeek closed 3 years ago

fischgeek commented 3 years ago

Proposed Changes

Describe the big picture of your changes here to communicate to the maintainers why we should accept this pull request. If it fixes a bug or resolves a feature request, be sure to link to that issue.

Types of changes

What types of changes does your code introduce to canopy? Put an x in the boxes that apply

Checklist

Put an x in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your code.

Further comments

If this is a relatively large or complex change, kick off the discussion by explaining why you chose the solution you did and what alternatives you considered, etc...

I couldn't get the project to build on my end and removing the Imports in the proj files fixes it and allows the packages to resolve themselves. In addition to that, I had to add System.Drawing.Common from the Package Manager. So, not sure if this is a valid PR, but I thought I'd give it a shot.

lefthandedgoat commented 3 years ago

Why stop using paket?

fischgeek commented 3 years ago

I think it's still using package dependencies, but those Import lines in the proj files threw build errors and removing them allowed the project to build. I don't know, I might be waiving a n00b flag here; let me know.

lefthandedgoat commented 3 years ago

Can you help me with steps to reproduce your build error and I will see whats happening.

fischgeek commented 3 years ago

Sure.

  1. Clone the canopy repo
  2. Open the solution
  3. Observe the Error List
MSB3073 The command "dotnet paket restore" exited with code 1.  canopy
MSB3073 The command "dotnet paket restore" exited with code 1.  canopy.integration
MSB3073 The command "dotnet paket restore" exited with code 1.  csharptests
MSB3073 The command "dotnet paket restore" exited with code 1.  basictests
MSB3073 The command "dotnet paket restore" exited with code 1.  paralleltests

Cleaning, rebuilding or attempting to restore packages all throw the same errors. The dependencies in each project have the yellow triangle in them as well. Maybe I'm doing something wrong or missing a step?

lefthandedgoat commented 3 years ago

When I clone and open in VS I see the same errors.

If you run build.cmd from the command line it will make it build in VS correctly. The command line build wont run correctly, something I will fix, but it will make it build in VS. Hope this helps.

fischgeek commented 3 years ago

I tried to navigate to the directory in PS and run build.cmd but that isn't a recognized command. I also tried dotnet build which resulted in the same errors.

lefthandedgoat commented 3 years ago

Try running the commands in the build.cmd

https://github.com/lefthandedgoat/canopy/blob/master/build.cmd