The Elysium project on CodePlex looks interesting. One problem. I can't figure out how to use it. I can only assume that there is an assumption that the user knows what he or she is doing. I don't apparently. I download the Debug Binary from here. It has a batch file for loading the files, and it looks to have run without error. But I can't figure out where to go from here. When I open Blend, I see no templates or themes. Can someone please help?
Thanks
Download the binaries either from Codeplex or Nuget.
Add references to the binaries: Elysium.Theme.dll, Microsoft.Expression.Interactions.dll, Microsoft.Windows.Shell.dll and System.Windows.Interactivity.dll
Note: some of the binaries that come with the package aren't added correctly if you do it via Nuget so you'll have to add them manually.
When you add a new window to your application, add this namespace to your XAML: xmlns:metro="http://schemas.codeplex.com/elysium/theme"
Then change your XAML so that the window isn't just a <Window ..>...</Window> but is instead a <metro:Window ..>...</metro:Window>.
There are lots of other examples in the test project on the Elysium site which show how to use the custom controls, etc.
That should get you started.
Best of luck.
For Elysium 1.5 onwards, here's the step
Download and extract zip file.
Look for "Elysium.dll" and "Elysium.Notifications.dll". You might need to extract a zip again if you are using x86 system.
Add reference to both Elysium.dll and Elysium.Notifications.dll
Add Elysium theme controls at the visual studio toolbox
Drag and drop any Elysium theme control to your user interface, visual studio will automatically add the xmlns reference in the xaml.
Refer http://bizvise.com/2012/09/24/how-to-install-elysium-on-visual-studio-project/ for a complete step by step guide.
For Elysium Version 2.0, here's what I did:
Download the SDK here.
Extract the .zip file.
Install the correct .exe file (x86 or x64).
Restart your Visual Studio (if opened).
Create a new project with WPF Metro application:
Finally, you can add the controls manually on your toolbar:
If you like this extension, then you can donate on their website.
Download SDK from here and intall the SDK. It integrates with Visual Studio and you have Metro WPF template as well.
Related
I am working on a WPF project. I have created a Wix project which runs along with the main project and has a program.cs component as well as the XML file.
Although I can see it creates the installer upon re-building the project, what is not clear to me is that why don't I have the actual WPF project inside it or as part of it. So really I don't install anything when I run it. Simply a shell program.cs file which is part of the Wix project.
I don't get the actual project at all. So how do I effectively "add" the WPF project to the WiX project so it generates the .exe or .msi file.
When I used the Windows native build project, I was able to get this however it is really tedious.
Thanks,
Ibrahim
Most of understanding how WiX works is understanding how Windows Installer works. WiX is mainly a language and compiler to author and build Windows Installer (.MSI) database files. It does have some additional extensions and the ability to create a bootstrappper / chainer (.EXE) and that is additional tech to understand.
MSI and therefore WiX should be thought of in terms of declarative programming rather then imperative. You describe the product, the UI experience, the feature/component/resources relationships or the "what" needs to be installed and MSI handles the "how" to install it.
WiX newbie here too. I found that this tutorial to be helpful to get started: Create a simple setup. It walks you through creating a new WiX project in the Visual Studio. It creates a really simple installer (e.g. doesn't even add a shortcut to the Start Menu), but I think it will help with your understanding of how WiX works.
After you get the above example working, I'd suggest reading through this tutorial: How To: Create a Shortcut on the Start Menu. Note: I found that it was easier to copy/paste the entire code sample at the bottom of the page, replace everything in the default Product.wxs file in the WiX Visual Studio Project, and then replace references to your own files as needed.
Currently I am trying to add service reference for mine Portable Class Library (PLC) in my Xamarin.Forms apps. For that point, I read that I have to remove Windows Phone 8.1 target platform.
I am opening PLC properties and I see where the target platforms are, there I find WinPhone and Silverlight, unfortunately when I click Change they disappear and I cannot remove them.
Screenshot of libraries
Can anybody suggest what the issue could be and how can I fix it?
Please keep in mind that I am doing it with Visual Studio Community 2017 (version 15.2).
Thanks in advance
1 option is to change the .net profile version manually in your .csproj file.
Visual Studio unload your current PCL Project.
Edit your .csproj File (Right Click on the unloaded project)
Find Node <TargetFrameworkProfile></TargetFrameworkProfile>
Change Value to Profile7
Save and close the file.
And than reload your .csproj file.
Another way is to uncheck Asp.Net Core when clicking on Change button. That will give you the Add ServiceReference instantly.
I have just downloaded unity and saw that now it supports Visual studio code, I downloaded it and made it the default editor.
After trying to edit a script, it prompted me to download c# extension and I did, but there is no auto-complete for unity functions. How can I get that? I'm on Mac.
Any help is appreciated.
Maybe too late, but for future comers ...
There is an extension now for visual studio code called MonoBehaviour Snippets by Rachod Petchpho.
Press Ctrl+shift+x in the IDE to open extensions panel then search for MonoBehaviour Snippets, install and reload the IDE, now you will find all the autocomplete for the function names and objects just like MonoDevelop.
I had the same situation and I bang my head to the wall for days. There was no solution on the net as there are few people using Unity on linux with Visual Studio Code. I finally removed mono and went to their site and downloaded the Visual Studio build (even though we use Visual Studio Code). Then volaaa. Auto complete and suggestions related to Unity functions were there. Of course after installing the necessary extensions.
https://www.mono-project.com/download/vs/
I had the same problem with Unity + VS Code combo.
I have found an extension called Unity CodeSnippets
I highly recommend to download it. This is much better than any of other snippets collection for VSCode.
Intellisense (Autocompletion) is a pure workflow of .Net Environment. So, you need to have .Net 'Developer pack' (not Runtime) installed on your system as it installs all three necessary components below:
.Net framework
.Net Target pack
.net SDK
reference link: https://dotnet.microsoft.com/download/visual-studio-sdks
It is directly installed to a system admin-accessible path, so no need setting it up. Now, you have to tell VS Code which .Net version to use (whichever you have installed).
Your Unity project will have these two files in the root directory:
Assembly-CSharp.cs
Assembly-CSharp-Editor.cs
In these both files search for line (probably 16):
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
Edit version that you had just installed (I had 4.8). Then reopen VS Code. Now everything should work fine.
You can use the unity integration plugin:
https://code.visualstudio.com/Docs/runtimes/unity
Follow the instructions to get set up. It seems a lot of things to do but I think that's the best one.
If you still hit the issue even by using that plugin then follow this issue at their github page.
https://forum.unity.com/threads/cant-get-vscode-to-work-properly-with-unity.538224/
there are people that found a workaround.
unityoracle user said:
"This issue is that Unity Editor expects the file used to launch VSCode to have a specific name. "
and:
"Specifically, creating a symlink named "code" that opens VSCode fixed this issue"
for me, it works by downloading .NET Framework 4.7.1 Developer Pack
here
here is the link
Follow the steps from https://code.visualstudio.com/docs/other/unity
Then in unity editor, set VS Code as the default Script editor:
Edit -> Preferences -> External Tools -> External Script Editor
Right below, set Embedded packages and Local packages to true
i used these methods and it worked
Change in External Tools: Edit -> Preferences :choose " Visual Studio Code"
Open file : Assembly-CSharp-Editor in your project folder and Download the Framework Version that is the same as the version in this file EX: v4.7.1
Open VScode tool - Settings - >code lens and tick.
source from here:
https://www.gamesmobile.one/2022/01/visual-studio-code-auto-complete-with.html
I installed an older version of c# vscode extension, version 1.16.21, and it is working.
I am making a C# Web Form application and I want to use RedditSharp. https://github.com/SirCmpwn/RedditSharp
I've never used an API in C#, this would be my first time using something outside of the C# generics. Could someone help me understand how to import it to use it?
Create C# Web Forms project in Visual Studio
Download RedditSharp code from Github
Compile RedditSharp into DLL (build enclosed solution, grab DLL from the bin/release folder or wherever it builds to)
Add a reference from your project to RedditSharp DLL
Check examples at https://github.com/SirCmpwn/RedditSharp, add something like that to your code
Don't forget to add "using RedditSharp;" to the top of your code file.
Easiest thing to do in Visual Studio is to install the nuget package. Go to Tools...Nuget Package manager... Manage Packages for Solution. Search for RedditSharp, click install.
Now you can reference it from anywhere in your project by adding:
using RedditSharp;
This has the added benefit of Visual Studio alerting you to new updates anytime the official RedditSharp project is updated.
I would like to use log4j.net in my windows forms project. However I have never used any library or dll in .NET. How to do it? I look at the site, but I can't find it.
I'm using visual studio 2010.
Add the log4net assembly to your project:
Browse to the log4net downloads page and download the latest log4net archive
(right now the latest version is 1.2.10).
Extract that archive and place the files somewhere to your project
(for example in a folder like yourproject/lib/log4net).
In Visual Studio right click in your project on the References folder and click on Add Reference....
Browse to the folder where your assemblies are (see point 3) and choose the log4net.dll assembly.
Here are some nice basic tutorial for the first steps using Log4Net:
Log4Net Tutorial pt 1: Getting Started
Using Log4Net in 4 Simple Steps
Log error or exception using Log4Net
In your project, you need add a reference to the library, usually by selecting the DLL from the references dialog.
A package manager, NuGet, has been created as an add on to Visual Studio 2010, which lets you select libraries - it will download and set them up for you.
Whichever way you do this, you will now be able to use the library - in a code file, use the using directive to import the namespace, then you can use the classes and other public members of the library in your code (though you could use the fully qualified name every time, if you wish to).
This has nothing to do with a library being open source or not, by the way.
you can easily get now using NuGet package manager in visual studio 2010
Write this command in Package manager console.
Install-Package log4net
See this link
Do you have any specific problems?
Check link below and maybe ask a question if you are stuck on something:
http://sadi02.wordpress.com/2008/06/29/log4net-tutorial-in-c-net-how-can-i-show-log-in-a-file/