Davaaron
Unity - Reusable components, how?
Hey,
I created a simple model in blender, exported it and doing some stuff with it now in Unity. So I have a .fbx file in my assets and my hierachy, added scripts and stuff to it and using it in other scripts. Now I'm thinking about having multiple objects. How would I this now? Would I drag the component into my assets folder - so create a prefab and then drag multiple items into the hierarchy again, or do you do that via code? Or even somehow else?
The dragging seems kinda redundant to me somehow
7 replies
Build order with dotnet build ...?
Hi,
Im using VS code for my C# development. I have some MSBuild Tasks that create assets that are used by other projects. Now, when I run
dotnet build
at solution level, the asset producing projects always run late. So I have to run it twice. I created a script to build each project in order by calling dotnet build
on the project level. However, some commands like dotnet publish
or dotnet release
seem to work better and easier on the solution level.
So I wonder is there maybe a trick to define the order? Maybe in the *.sln file? Or can I define it in the debug|release section somewhere?40 replies
Api Method Name Attribute
Hi,
i just wonder what the name property inside the HttpMethod attribute is for? I read it can be used in MVC a lot when calling other controllers or getting their routes. So I have something like
Im usually used to something like
[HttpDelete("{id}")]
. I cannot specify both, right? I just create an api and want to be documentative/verbose about my code15 replies
Blazor validation - validation message not added?
Hi,
i have created a base form component and I use another Blazor form component. The issue is that customly added validation messages are not shown in the ValidationSummary and the visual styles (red and green highlighted inputs) are not shown for my nested form, why is that?
Can I use "DataAnnotationValidator" and add custom validation messages at the same time?
1 replies
Add app created with ng new to solution
Hi,
is there a way to include an app created with
ng new
to the solution? My goal is start that app without any host using npm run
within Visual Studio. Is there some kind of *.proj file or any other way to do it? Actually, the app should also be visibile in Visual Studio, that's also why I want to add it to the solution file.1 replies
❔ WPF - Use command of viewmodel instead of item on click
Hi,
I have a list of strings and display them as buttons. The list is held by a viewmodel and the viewmodel has a Command for the button click. Now, instead of creating an object for strings and add the Command to the items, I would like to have the Command at the viewmodel level.
11 replies
❔ Prism: Change view in region - How to add multiple views to region and activate?
Hey,
currently I'm developing a WPF application that has a navigation menu on the left (basically a treeview) and a content panel on the right. Whenever I click on a treeview item, the details about that item should be displayed on the right side within the content panel.
There are different types of items and each type has a view and a viewmodel.
How do I add multiple views to a region and activate one at a time?
I added the views like this
and PersonDetails is showed. When I run
I get an error
When I exchange "RegisterViewWithRegion" by "AddToRegion" I get another exception.
What's wrong here?
3 replies
❔ E2E Test - Start MVC project
Hi,
im using a testing tool for E2E testing and wondered how to get a MVC project started so the tool can visit the URL of the application and do some stuff?
I call this in the constructor of the test class
but when I navigate to the URL within a browser after the
Start()
method, it says the page is not reachable. How can I start my MVC project?23 replies
❔ Get an entity with Sql data client
Hi,
Im trying to read some data with the sql data client and Im stuck.
The data looks like this: ID (uniqueidentifer, PK), Forename (nvarchar), Lastname (nvarchar), Birthday (datetime)
The code looks like this
The error message is:
Somebody has an idea what's wrong? That the script for the table
3 replies
❔ Exclude sql from build
Hi,
how can I exclude some files from the compile process?
Imagine I have script like
and VS complains about the syntax near '@name'. Whatever, I know it better and want VS stop to care about these files, just have them in a *.resx file for now.
I already set the build step to "None" but VS doesnt care... is this a bug?
4 replies
❔ Load *.sql files (How to handle them?)
Hi,
Im creating a backend in NET Core and I do not want to use EF Core as I need to extend my SQL knowledge, so I thought it's good to use SqlDataClient and raw SQL. So far so good.
My solution structure is like this:
- Domain (contains Models and SQL scripts)
- Infrastructure (contains Repositories, Services, SQLManager [classes to create database, tables, call sql scripts, etc)
- Web API (controllers that use the services in the infrastructure)
My idea was to store the SQL scripts along the models as resource files and have them in a *.resx file or maybe call the files programmatically, but I think the first option is good for resolving compile errors.
I wonder if I can reference the *.resx files from another project (infrastructure)?
How do you typically deal with *.sql files that you call in your programs?
12 replies
Map complex object (dictionary) from appsettings.json to model
Hi,
i have a complex appsettings.json like this
How can I map this?
I have a class definition
and read the config like
When I check the
clientConfig
object, I see that the ProtectedResourceMap
has one entry: key="1" and value="user.read". How can I fix it so I have a list of dictionary entries?9 replies