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
I also tried adding this manually:
But I am not able to use classes that are in the project.
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
I am not using solution
I am only using csproj
well, then u know the problem
but this project has a solution. But my project that I wanna reference this to has no solution
im pretty sure as soon as u open the project with visual studio it will generate a solution file
well, I use rider.. but let me try vs
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
I guess it is working
Let me close vs now and get back to rider. I find it hard to use vs
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 😂
Ah, VS really sucks
trying it in vs now.. it won't be much problem ig
ye, it worked ig
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
ah ok. tnx for the info
I did put it but still an error
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
I am trying to host wpf control in avalonia
hmmm i guess the referencing of the other project still doesnt work correctly
can u build to force all error logs and show them?
These are the errors when I build
that project builds with out any issue
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?
project file
pls dont send them as screenshots
$code
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/and the project I am referencing to you can find it using this link,https://github.com/Wacom-Developer/sdk-for-ink-wpf/blob/master/Samples/WILL3-DemoApp-WPF/WILL3-DemoApp-WPF.csproj
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...
Let me send in two msgs
oh okay
or use github's gist or so
(brb ~5min for a smoke)
BlazeBin - epwdtrbvgpqv
A tool for sharing your source code with the world!
okay
thisis my projects csproj. You can find the other project using the above github link
and the solution file?
okay, let me send
BlazeBin - jgrpgdqftsun
A tool for sharing your source code with the world!
and just to ensure: u reopened rider with the solution file instead of with just the project file, right?
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
thats not the solution file
sure
okay let me send
could you clone the repo and reference it by yourself or let me send both projects?
im fine with cloning it
Okay here you go
removed bin, obj, .idea and .vs folders
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.
Thank you btw : )
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
yes
well i cant, im missing the sdk =/
I did try to embed another project before and it worked
but anyway i would recommend just creating ur own little wpf project for that test
let me see where I put the sdk in my project
and then adding up on that
hmm, I am not able to find it.. okay, let me try this
Thank you for the cooperation
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
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
@cap5lut Just cloned in new location and working for me perfectly!
well i cloned as well and got (iirc) 238 errors cuz missing namespaces
Wacom.Ink
and alikehmm, those sdks not downloaded automatically?
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
if referencing the project worked, this would have worked perfectly!