C
C#•17mo ago
Abdesol

I am trying to reference a .csproj to my project, but it is throwing this error...

So, I cloned this repo 👉 https://github.com/Wacom-Developer/sdk-for-ink-wpf And I am trying to reference it to another project. Namely this one 👉 https://github.com/Wacom-Developer/sdk-for-ink-wpf/blob/master/Samples/WILL3-DemoApp-WPF/WILL3-DemoApp-WPF.csproj What is the problem? And How can I fix it? I appreciate any kind of help. Thanks in advance!
GitHub
GitHub - Wacom-Developer/sdk-for-ink-wpf: WILLâ„¢ SDK for ink support...
WILLâ„¢ SDK for ink supports a variety of input technologies and generates the highest quality, most attractive digital ink outputs via these modules: Path generation and smoothing, Rasterizer, Manip...
GitHub
sdk-for-ink-wpf/Samples/WILL3-DemoApp-WPF/WILL3-DemoApp-WPF.csproj ...
WILLâ„¢ SDK for ink supports a variety of input technologies and generates the highest quality, most attractive digital ink outputs via these modules: Path generation and smoothing, Rasterizer, Manip...
60 Replies
Abdesol
AbdesolOP•17mo ago
I also tried adding this manually:
<ItemGroup>
<ProjectReference Include="..\..\WILL3-DemoApp-WPF\WILL3-DemoApp-WPF.csproj" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\WILL3-DemoApp-WPF\WILL3-DemoApp-WPF.csproj" />
</ItemGroup>
But I am not able to use classes that are in the project.
cap5lut
cap5lut•17mo ago
well, did u add the project to the solution? its either add the project to the solution and reference it via the csproj file, or reference the built assembly directly. the latter i dont recommend
Abdesol
AbdesolOP•17mo ago
I am not using solution I am only using csproj
cap5lut
cap5lut•17mo ago
well, then u know the problem
Abdesol
AbdesolOP•17mo ago
but this project has a solution. But my project that I wanna reference this to has no solution
cap5lut
cap5lut•17mo ago
im pretty sure as soon as u open the project with visual studio it will generate a solution file
Abdesol
AbdesolOP•17mo ago
well, I use rider.. but let me try vs
cap5lut
cap5lut•17mo ago
there are basically 3 means to reference another assembly: - same solution: reference the csproj - reference the assembly directly (the generated dll) - using a package manager: nuget is the one for the dotnet ecosystem
Abdesol
AbdesolOP•17mo ago
I guess it is working Let me close vs now and get back to rider. I find it hard to use vs
cap5lut
cap5lut•17mo ago
the first and the last are the best to choose from, because they will also handle transient dependencies yeah, i used to use rider as well, but i have some edge cases where i cant use rider so i stick w/ vs 😂
Abdesol
AbdesolOP•17mo ago
Ah, VS really sucks trying it in vs now.. it won't be much problem ig ye, it worked ig
cap5lut
cap5lut•17mo ago
ig there are also some dotnet cli commands u can use to generate a solution file from a project file, but im not that knowledged about it
Abdesol
AbdesolOP•17mo ago
ah ok. tnx for the info
Abdesol
AbdesolOP•17mo ago
I did put it but still an error
cap5lut
cap5lut•17mo ago
what are the exact errors? and i meant, it looks like there is something doomed to break, one is using wpf and that screenshot is using avalonia
Abdesol
AbdesolOP•17mo ago
Abdesol
AbdesolOP•17mo ago
I am trying to host wpf control in avalonia
cap5lut
cap5lut•17mo ago
hmmm i guess the referencing of the other project still doesnt work correctly can u build to force all error logs and show them?
Abdesol
AbdesolOP•17mo ago
These are the errors when I build
Abdesol
AbdesolOP•17mo ago
that project builds with out any issue
cap5lut
cap5lut•17mo ago
these two make me think that ur avalonia tfm is wrong and that something went wrong with generatiing the solution ... tbh, im sort of clueless rn can u show the solution file's and the project file's content?
Abdesol
AbdesolOP•17mo ago
project file
cap5lut
cap5lut•17mo ago
pls dont send them as screenshots $code
MODiX
MODiX•17mo ago
To post C# code type the following: ```cs // code here ``` Get an example by typing $codegif in chat If your code is too long, post it to: https://paste.mod.gg/
Abdesol
AbdesolOP•17mo ago
GitHub
sdk-for-ink-wpf/Samples/WILL3-DemoApp-WPF/WILL3-DemoApp-WPF.csproj ...
WILLâ„¢ SDK for ink supports a variety of input technologies and generates the highest quality, most attractive digital ink outputs via these modules: Path generation and smoothing, Rasterizer, Manip...
Abdesol
AbdesolOP•17mo ago
Abdesol
AbdesolOP•17mo ago
Let me send in two msgs
cap5lut
cap5lut•17mo ago
Abdesol
AbdesolOP•17mo ago
oh okay
cap5lut
cap5lut•17mo ago
or use github's gist or so (brb ~5min for a smoke)
Abdesol
AbdesolOP•17mo ago
BlazeBin - epwdtrbvgpqv
A tool for sharing your source code with the world!
Abdesol
AbdesolOP•17mo ago
okay thisis my projects csproj. You can find the other project using the above github link
cap5lut
cap5lut•17mo ago
and the solution file?
Abdesol
AbdesolOP•17mo ago
okay, let me send
Abdesol
AbdesolOP•17mo ago
BlazeBin - jgrpgdqftsun
A tool for sharing your source code with the world!
cap5lut
cap5lut•17mo ago
and just to ensure: u reopened rider with the solution file instead of with just the project file, right?
Abdesol
AbdesolOP•17mo ago
yes I switched to vs now. Actually, if you don't mind and have enough time, I can send you the project. It is just a sample project to test if I can host controls from the project I download on github which are wacom drawing controls into avalonia
cap5lut
cap5lut•17mo ago
thats not the solution file sure
Abdesol
AbdesolOP•17mo ago
okay let me send could you clone the repo and reference it by yourself or let me send both projects?
cap5lut
cap5lut•17mo ago
im fine with cloning it
Abdesol
AbdesolOP•17mo ago
Abdesol
AbdesolOP•17mo ago
Okay here you go removed bin, obj, .idea and .vs folders
Abdesol
AbdesolOP•17mo ago
If you could just resolve me this error, I am good.. actually, it is a bit of a process to host the control and I will handle that.
Abdesol
AbdesolOP•17mo ago
Thank you btw : )
cap5lut
cap5lut•17mo ago
dont thank me yet, i was 0% useful yet 😂 u were able to build the demo app right? that sample can not be compiled, its missing dependencies that arent on nuget either i would say, create ur own little wpf project to try to "embed" into ur avalonia app what im missing to compile the sample is the wacom sdk, and at checking their site i can request it, but i doubt "hey there is that person on discord that has questions and im trying to help, can u gimme the sdk?" will work out
Abdesol
AbdesolOP•17mo ago
yes
cap5lut
cap5lut•17mo ago
well i cant, im missing the sdk =/
Abdesol
AbdesolOP•17mo ago
I did try to embed another project before and it worked
cap5lut
cap5lut•17mo ago
but anyway i would recommend just creating ur own little wpf project for that test
Abdesol
AbdesolOP•17mo ago
let me see where I put the sdk in my project
cap5lut
cap5lut•17mo ago
and then adding up on that
Abdesol
AbdesolOP•17mo ago
hmm, I am not able to find it.. okay, let me try this Thank you for the cooperation
cap5lut
cap5lut•17mo ago
generally speaking u added the project reference correctly from what i have seen, its just that it couldnt find the sdk under these circumstance and thus couldnt compile so now its more about the wacom sdk and actual sample project that anything else
Abdesol
AbdesolOP•17mo ago
did you get that red underline removed from the main project? Btw, I don't think you even need the sdk I cloned and run it with vs and worked properly
Abdesol
AbdesolOP•17mo ago
@cap5lut Just cloned in new location and working for me perfectly!
cap5lut
cap5lut•17mo ago
well i cloned as well and got (iirc) 238 errors cuz missing namespaces Wacom.Ink and alike
Abdesol
AbdesolOP•17mo ago
hmm, those sdks not downloaded automatically?
Abdesol
AbdesolOP•17mo ago
cap5lut
cap5lut•17mo ago
hmm, i deleted it all already as it wasnt really the point of the question 😂 now its more about the native control host from avalonia where i have absolutely no clue about
Abdesol
AbdesolOP•17mo ago
if referencing the project worked, this would have worked perfectly!
Want results from more Discord servers?
Add your server