-
-
Notifications
You must be signed in to change notification settings - Fork 276
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
How should one build Costura from source? #637
Comments
We recently updated to the latest version of Cake. This means you should use:
or if you want to test a local debug package:
or an "official" package:
Also comment / delete the MethodTimeLogger, then it should all work. |
So I tried with Here is an excerpt from the log:
Same with the As you can see from the timings, nothing was built:
I have looked at the |
Yes, running from the repository root on commit 951f6d3 after running |
I will push the code that clears the logging stuff. I need to setup a repository template for Fody projects but need to find the time. |
Thanks for fixing the build in 16ffc1d. I finally understood why no project was being built: I was using a Developer Command Prompt for VS to build Costura and there, the Now, here is the next error which happens during the packaging phase when running
So I added Anyway, after ignoring |
Thanks for the update! Sorry this is such a pain, we use these scripts everywhere in our 100+ repositories. For us they are very useful, but I totally understand that they look very complex when looking at it from a single repository point of view. We are using the .NET Core 5.0 sdk as well, but haven't packed Costura in a while. We do use a similar thing in Catel.Fody. Maybe we fixed it there as well. Note that there are 2 different ways to package: Official release This is what is used to create official releases by the build server. This creates a release build and creates the package in the output\release directory.
Local release We use this to test local packages in debug mode. Using the
This way the builds are superfast, allow to change code & "rerelease locally" without having to bump a version.
|
Thanks for your input. I have a working solution that addresses #633 when I'm testing the produced local NuGet package in a sample console app. Unfortunately, the unit test that I added doesn't pass and I'm not sure yet why. I'll probably have some more questions about it… |
Enter Question Below (don't delete this line)
I'm trying to build Costura from source (I'd like to propose a real solution to #633) but the build fails.
In order to build Costura, I first tried to run
.\build.ps1 -Target BuildAndPackage
but it failed with this error:So I finally tried with the following commands instead:
A lot of projects build fine but eventually
AssemblyToReference.csproj
fails to build because of a reference issue toCatel
:I was able to "fix" this build issue by commenting out the 3 lines using Catel (for logging) in
MethodTimeLogger.cs
.Am I using the correct command to build Costura from source?
Is there something special to do about Catel before building?
I'm using Visual Studio 2019 Professional, MSBuild version 16.8.2.56705 and I have the .NET Core SDK 5.0.1 installed.
The text was updated successfully, but these errors were encountered: