Skip to main content
1 vote
0 answers
77 views

Generated files not added to build in C# project generated by CMake

I'm trying to add generated files to a C# project created by CMake. I find that while CMake can generate a C# project from existing files, it somehow treats generated files differently. They are found ...
Yosef Meller's user avatar
2 votes
1 answer
124 views

Intellij modules not finding generated protobuf classes in a multimodule maven project (but works fine via maven cli)

I have a project set up like this: protos/ # protobuf files here pom.xml # parent pom services/common # this module generates the protobuf classes services/mod-1 # imports ...
Paul C's user avatar
  • 8,429
0 votes
0 answers
52 views

Generating Java code at runtime to replace legacy reflection-based data mapping. How to use @ForceInline and and module export questions

I’m writing a library that generates Java code at runtime, and so far it’s producing good results. The problem: some legacy software (read: "adopting polymorphism now is kinda impossible") ...
Vento's user avatar
  • 91
1 vote
1 answer
62 views

Unable to call desired overload of a generated PInvoke function

I'm am testing out the C#/Win32 project so I can call Win32 Setup API functions with automatically generated PInvoke wrappers. I am unable to make my code call the correct overload of one of the ...
Joe's user avatar
  • 7,166
0 votes
0 answers
125 views

How to generate certain java classes from WSDL (not all of them)

I have to create lightweight java client. So I got 1 WSDL and few XSD Schema files from server, I`m using java17 and maven wsimport plugin this way: <build> <plugins> ...
fireflysk's user avatar
0 votes
0 answers
191 views

ABAP: Generate class with SEO_CLASS_CREATE_COMPLETE with pretty printer

I'm using the Function Module SEO_CLASS_CREATE_COMPLETE to generate classes, but the problem is, that it doesn't do Pretty-print on the source code. Q: Is there a way to make the FM do Pretty-print? ...
Poul Bundgaard's user avatar
4 votes
1 answer
619 views

Why is the read-only RegexGenerator.g.cs file (autogenerated by GeneratedRegex attribute) throwing CS0165

In my project, I use the GeneratedRegex attribute like so: public partial class Game { ... [GeneratedRegex(@"<regex>", RegexOptions.Compiled, "en-US")] private ...
ComplexSymbol's user avatar
0 votes
1 answer
465 views

Reading a DTO from the HttpContext returns null in JSON de-serialization (nswag generated client)

I'm diving into NET8, minimal API and clean architecture. First of all: This works (Swagger UI and postman) app.MapPost("/user/login", async (HttpContext httpContext, [FromBody] LoginDto ...
Gottfried Lesigang's user avatar
2 votes
1 answer
154 views

In which cases compiler generates additional code in C#?

So I've been inspecting some 3rd party assembly with ILSpy & dnSpy and noticed various compiler generated classes and methods. Some examples: Getter syntax like public Value { get; set; } is ...
Vladyslav's user avatar
  • 786
0 votes
0 answers
36 views

Generate pdf with pdfKit packingList

I need to generate a pdf of the packing list with the data of the notes and the volume of the box, and I want it to be added to a new page when it exceeds 40 pages, I'm using pdfKit I'm using this ...
Wilton Santos's user avatar
2 votes
1 answer
382 views

Xamarin Resource.Designer.cs generating const instead of static

I have on .NET 6 project using xamarin.android where the resource designer file generated with an error CS0131 : The left-hand side of an assignment must be a variable, property or indexer: public ...
Youness Kafia's user avatar
2 votes
2 answers
1k views

When I open a querydsl JPA project with vscode, vscode has many cannot be resolved errors

When I open a querydsl JPA project with vscode, vscode has many cannot be resolved errors: The import com.**.QRoutePayload cannot be resolved When I open it with IDEA, it's all right. Why do I get ...
tmaolin's user avatar
  • 21
1 vote
1 answer
223 views

incompatible types: com.google.common.collect.ForwardingImmutableMap cannot be converted to com.google.common.collect.ImmutableMap generated-sources

When I start my wildfly in debug modue I get the following error in project-parent\project-frontend\target\generated-sources\gwt\com\google\common\collect\ForwardingImmutableMap_FieldSerializer.java:...
user1167753's user avatar
1 vote
0 answers
694 views

How to modify code written in InitializeComponent method (WinForms Designer generated code)?

I'm a WPF developer and have to perform some task in WinForms (I'm a total newbie of WinForms). Unlike in WPF, I've noticed that the InitializeComponent method in WinForms is generated by the Windows ...
Cod Fish's user avatar
  • 947
0 votes
1 answer
505 views

Jackson Spring-boot test coverage

I'm developing a rest API on IntelliJ and I was wondering if there's a way to exclude Jackson generated classes from test coverage. Searching online I didn't find anything except a way to tell ...
artificialdeathinthewest's user avatar

15 30 50 per page
1
2 3 4 5
16