# Return Vector2 in CSharp CS-file using Stride.Core.Mathematics Problem

**URL:** <http://forum.vvvv.org/t/return-vector2-in-csharp-cs-file-using-stride-core-mathematics-problem/21143>\
**Category:** question\
**Created:** [January 6, 2023, 3:38pm UTC](http://forum.vvvv.org/t/return-vector2-in-csharp-cs-file-using-stride-core-mathematics-problem/21143 "2023-01-06T15:38:55Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![CeeYaa](http://forum.vvvv.org/user_avatar/forum.vvvv.org/ceeyaa/32/19837_2.png) [@CeeYaa](http://forum.vvvv.org/u/CeeYaa)\
**Post date:** [January 6, 2023, 3:38pm UTC](http://forum.vvvv.org/t/return-vector2-in-csharp-cs-file-using-stride-core-mathematics-problem/21143/1 "2023-01-06T15:38:55Z")

</div>

Hello Together - I was playing around with Csharp and Gamma - I’m kind of dyslexia with written code and mybe it’s a little problem but I don’t find.

I read through the following Links but also couldn’t solve my red node:

> **[Is System.Numeric.Vector3 and VL's Vector3 interchangeable in gamma?](https://discourse.vvvv.org/t/is-system-numeric-vector3-and-vls-vector3-interchangeable-in-gamma/21127/3)**
>
> This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.

and

[https://thegraybook.vvvv.org/reference/extending/writing-nodes.html](https://thegraybook.vvvv.org/reference/extending/writing-nodes.html)

 ![image](http://forum.vvvv.org/uploads/default/original/2X/f/f29e33972a66776a65fe69318391e839278de457.png)

Maybe I did an Error in Including a DLL or make wrong settings in the VL-File - I don’t know - so I add the ZIP of all files included.

[CSharpNode\_Vector2problem.zip](http://forum.vvvv.org/uploads/short-url/t7uJ0ZcMzO6BktId2wx2lPIbim9.zip) (89.2 KB)

thanks for hints and comments

---

<div class="post-metadata">

**Author:** ![bjoern](http://forum.vvvv.org/user_avatar/forum.vvvv.org/bjoern/32/17774_2.png) [@bjoern](http://forum.vvvv.org/u/bjoern)\
**Post date:** [January 6, 2023, 4:33pm UTC](http://forum.vvvv.org/t/return-vector2-in-csharp-cs-file-using-stride-core-mathematics-problem/21143/2 "2023-01-06T16:33:31Z")

</div>

Added _Stride.Core.Mathematics_ nuget as dependency and changed the return type (was float needs to be Vector2). Works now at least for me.  
[CSharpNode\_Vector2problem\_b.7z](http://forum.vvvv.org/uploads/short-url/73TrMr98Mpo5T65BsmcZi7AvWH9.7z) (75.9 KB)

@Elias  
VVVV seems sometimes to revert / overwrite the changes made to the project in visual studio.  
I installed the nuget for example, it got listed in the _Solution Explorer_ under `Dependencies -> Packages` and `Vector2` was recognized as type. But then suddenly the `Packages` entry disappeared again (and the _using directive_ and the `Vector2` were no longer recognized).

Also vvvv doesn’t quit correctly when this patch / project is open, the process lingers in the taskmanager.

_2022.5.0-0441_

---

<div class="post-metadata">

**Author:** ![Elias](http://forum.vvvv.org/letter_avatar_proxy/v2/letter/e/999999/32.png) [@Elias](http://forum.vvvv.org/u/Elias)\
**Post date:** [January 19, 2023, 3:49pm UTC](http://forum.vvvv.org/t/return-vector2-in-csharp-cs-file-using-stride-core-mathematics-problem/21143/3 "2023-01-19T15:49:01Z")

</div>

Once we have a stable version of 5.0 out the situation should improve slightly because VL.Core will then be hosted on [nuget.org](http://nuget.org) and our “new project” wizard should be able to set the reference from the start.

Regarding the dependency disappearing. I did the steps locally on my end but couldn’t reproduce. I guess we’ll need to keep an eye out for it.

---

<div class="post-metadata">

**Author:** ![system](http://forum.vvvv.org/user_avatar/forum.vvvv.org/system/32/1_2.png) [@system](http://forum.vvvv.org/u/system)\
**Post date:** [January 19, 2024, 3:49pm UTC](http://forum.vvvv.org/t/return-vector2-in-csharp-cs-file-using-stride-core-mathematics-problem/21143/4 "2024-01-19T15:49:40Z")

</div>

Closed on January 19, 2024, 3:49pm UTC

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
