Comments (9)
Heh. Tempted to say the simplest fix is to use a real source control system, but realiae some people don't have a choice.
Will see what we can do. What you've suggested sounds reasonable.
from refit.
the simplest fix is to use a real source control system
This
What you've suggested sounds reasonable.
This too
from refit.
I think this might be the same issue, but if it's not then I'll open a new issue.
On build I'm getting
C:\Program Files (x86)\MSBuild\12.0\bin\amd64\Microsoft.Common.CurrentVersion.targets(1069, 5): error MSB3073: The command ""..\packages\refit.2.1.0\tools\InterfaceStubGenerator.exe" "C:\TeamCity\buildAgent\work\5c154ea65fba2a12\src\Website\RefitStubs.cs" "App_Start\IoC.cs;App_Start\LessTransform.cs;App_Start\RouteConfig.cs;App_Start\BundleConfig.cs;Classes\BundleHelper.cs;Classes\FormHelper.cs;Controllers\CallbackController.cs;Controllers\T101AsyncController.cs;Models\ConfirmationViewModel.cs;Orchestrators\ISecurePaymentOrchestrator.cs;Controllers\SecureController.cs;Orchestrators\SecurePaymentOrchestrator.cs;Controllers\T101Controller.cs;Global.asax.cs;Models\PaymentViewModel.cs;Properties\AssemblyInfo.cs"" exited with code 3.
I'm using teamcity with github. Is this going to be fixed in the next nuget release?
from refit.
@pierskarsenbarg Doesn't seem like the same issue
from refit.
@pierskarsenbarg Did you ever resolve this issue? I'm having the same issue now. I can't tell if it's just because TeamCity is in the wrong directory or what when it is trying to do the Pre-build event on my core project.
from refit.
I did what @bennor suggested here. That made it work.
from refit.
I just ran into this problem building https://github.com/flagbug/Espera after updating all the Paket packages. Problem was Refit's folder name is refit
, not refit.2.2.1
so Espera\packages\refit\build\refit.targets
is wrong on lines 5 & 9
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup Condition="'$(OS)' == 'Windows_NT'">
<PreBuildEvent>"$(SolutionDir)packages\refit.2.2.1\tools\InterfaceStubGenerator.exe" "$(ProjectDir)RefitStubs.cs" "@(Compile)"</PreBuildEvent>
</PropertyGroup>
<PropertyGroup Condition="'$(OS)' != 'Windows_NT'">
<PreBuildEvent>mono "$(SolutionDir)packages/refit.2.2.1/tools/InterfaceStubGenerator.exe" "$(ProjectDir)RefitStubs.cs" "@(Compile)"</PreBuildEvent>
</PropertyGroup>
</Project>
from refit.
that sounds like an old version of Refit. The current targets do not have the version in the path or any relation to $(SolutionDir)
:
https://github.com/paulcbetts/refit/blob/master/Refit/targets/refit.targets#L26
The current version of Refit is 2.4.1; can you try that?
from refit.
Closing this issue as the original problem has been solved. Generated files are written to the intermediate output path location (in obj). If there are still issues with TFS Build, then new issues should be opened.
from refit.
Related Issues (20)
- [Bug]: Refit 6.5.1 is no longer available on nuget.org HOT 3
- [Bug]: CollectionFormat.Csv causes strings to be serialized as comma separated chars
- [Bug]: Naming the interface to end with "Client" will result in an error during injection.
- Generated code should use `Array.Empty` or constant field where possible HOT 1
- [Bug]: Failed to generate generated classes in Azure Devops with Refit version 6.3.2 and 7.0.0
- Suggestion: run code cleanup/formatter HOT 1
- Target .NET 8 in Refit HOT 4
- Make fullstack C# development easier
- Add handlers to the interface method parameters and headers before generating the HttpRequestMessage
- [Bug]: POST request sent as GET HOT 9
- [Bug]: Long-lived HttpClient instance despite use of IHttpClientFactory HOT 1
- [Bug]: HttpClients not disposed
- [Bug]: Request streams get disposed and there is no option to avoid it
- Source generator for minimal API
- [Bug]: Cannot set the Content-Type header for a POST request HOT 2
- [Bug]: Refit Does Not Generate Implementations if 3+ Interfaces Share a Name HOT 1
- [Bug]: exception with TrimMode full: "URL /path/{id} has parameter id, but no method parameter matches"
- Dependency Dashboard
- [NiceToHave]: Interface `IApiResponse<out T>` misses `[MemberNotNullWhen(true, nameof(Content))]` attribute
- [Bug]: Using `Refit.HttpClientFactory` with a .Net 8 Blazor Web App HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from refit.