Where to find Microsoft.Practices.Composite.UnityExtensions.dll for Microsoft.Practices.Unity.dll thats of version 2.1.505.2..
I was using 1.2.0.0 version of unity dll . While i changed the version to 2.1.505.2 the code gave me an error saying unityextension is depenedent to 1.2.0.0 version of unity dll ...
the version I am using is 2.0.0.0 of unityextension.
I really need help .. thanks in advance
Follow below steps as documented in official website :-
1.In Visual Studio, create a new Silverlight application. To do this, point to New on the File menu, and then click Project. In the Project
types list, click Silverlight in the Visual C# node. In the Templates
box, click Silverlight Application. Finally, set the project's name,
such as CALApplication1, specify a valid location, and then click OK.
This project will be the Shell project of your application.
2.On the Add Silverlight Application dialog box, make sure the Add a new ASP.NET Web project to the solution to host Silverlight option is
selected, and then click OK.
3.(Optional) In Windows Explorer, create a folder named Library inside your solution's folder, and then copy the following assemblies into
the folder
â—¦Microsoft.Practices.Composite.UnityExtensions.dll. This assembly
contains base and utility classes you can reuse in applications based
on the Composite Application Library for Silverlight that consume the
Unity Application Block. For example, it contains a bootstrapper base
class, the UnityBootstrapper class, that creates and configures a
Unity container with default services when the application starts.
Related
i've already searched and seen almost all in the web and in the forum, but i can't deal with that.
What I'm trying to do is to obtain an installer and then an exe of my form application by using c# in visual studio 2019.
So, i've followed that tutorial:
https://www.youtube.com/watch?v=fehVTLNQorQ&ab_channel=FoxLearn
so i correctly obtain the setup file. Then, when i launch it, it installs and if i try to run it i get that error: "You're trying to open a file type system .dll"
What i'm doing wrong?
I also structured my main class as in that response:
Changing a source file to compile Main() method in a project, in VS c# console application
I also used that suggested setting (sorry for non english language but it's quite understandable):
Is there somebody that can help me? thanks a lot
Some things you may want to check:
If you have more than one project in your solution, make sure that the main project is marked as Start-up project. On the solution explorer, right- click on the main project and select "Set as start-up project".
If you only have one project in your solution, check that no .exe is being produced in the corresponding bin folder. If it is, go to your project properties, inside Debug, and make sure that the option "Start project" is selected. You can also try to select the option "Start external program" and browse to the .exe in your bin folder (although the result should be the same).
If no .exe is produced, you may want to have a look at this post. It is similar to you problem I think but the other way round. I looks that the UseAppHost should be True for your case
You have to choose "Publish Items" and not "Primary Output" when you add a "Project Output" in "Application Folder" for .Net Core 3.1 in the setup project created by Visual Studio Installer Projects Extension.
# Alessio Orlando.
Based on my test, there is a different step between adding different project to the installer.
For WPF App(.NET Framework) project and Windows Forms App(.NET Framework) project: You could choose Primary output when you add a "Project output" in "Application Folder" in the setup project.
For WPF Application(.NET Core) project and Windows Forms App: As gigiabbrescia said, you have to choose Publish Items when you add a "Project Output" in "Application Folder" in the setup project.
Finally, there will be an .exe file in your installation directory after installing your Setup (Like the picture below). And you could click on your .exe file to run the program.
There seems to be some issue with downloading the C# library. How do I get it added to the project?
You could add all these projects to the solution.
Then you can create a new program(such as console app), and right click add reference-> choose projects.
The following is the detailed steps.
1.Right click the solution->adding existing project->adding the project that you have downloaded from the link.
2.Create a new program that you will use google API->add reference-> projects ->choose the project you added last step.
3.Now you could use the class and method in the app.
I'm working on a windows form application in C# VS2010.
I found on the internet an implementation of a User-Control that I want to use in my project.
Problem: how can I import or include it so I will be able to see it in my Toolbox ?
I copied the UserControl directory into my project directory(see attached photo)
and then build the project and got this warning:
Error 1 Unable to create a manifest resource name for "RecessEditorControl.resx". Could not find file 'C:\Users\bassam\Desktop\comm\Projects\Thunder Archive\Thunder Archive\RecessEditorControl.cs'. Thunder Archive
any idea how it should be done?
Open the user control project separately (outside of your solution) and attempt to build it.
If the build fails, search for help from the control author(s) on what dependencies are needed and how you can build the control.
After you get it sucesfully built, there will be a .dll file in the bin/ folder (where config is most likely debug or release, depending on what configuration you used to build the project)
Reference this .dll from the windows desktop solution you are working on. Add it to the references section of your UI project.
It should automatically show up in the toolbox if it is properly coded as a user control.
There is the option of including the entire source project of your control in your win app solution, you can try this later if you verify that you are able to build the control on it's own.
Although I would not recommend this approach unless you intent to actively continue developing the user control.
You separately build user control to create a dll. After that include the dll in your app executable folder. When you switch to designer, you will see the control appears on the toolbox with the control name. Just drag n drop...
I have an ASP.NET project with outputType library, I need to run the project but it's not running. what outputType should i use to make my project run?
In order to fix the above error, right click the Solution name in Visual
Studio 2005/2008 and select Set as StartUp Project option from the popup menu.
source : Fix: A project with an Output type of Class Library cannot be started directly
Despite ASP.NET projects have Class Library type, Visual Studio can "run" these types of projects(it deploys project's output to IIS or dev server and starts web-app).
So to solve your problem you should tell Visual Studio somehow that your project is ASP.NET project. I see to ways:
1-st one - fast, straighforward, dumb, but reliable: create new "ASP.NET Web Application" project in visual studio and copy all sources to it.
2-nd - not sure that it's working, but more hack'ier and fun: open YourProject.csproj file in text editor, replace <ProjectTypeGuids ...> section by such ones, that could be found in csproj file of ASP.NET project.
Class library projects can not be run, you can debug them though. See Debugging DLL Projects
A project with an output type of class Library cannot be started directly.In order to debug this project, add an executable project to this solution which references the library project. Set the executable project as the startup project.Means
In VS.Net - right click on the page you want to be the initial startup page and set it to be the startup page.
HI, I have created a setUp project for my windows application.
My Solution has 2 Projects(1st is the Windows application and 2nd project is the setUp project that I added)I want to add custom welcome screens during installtion, so I did the following actions.
1) Created a setUp project and added it to solution having a windows application.
2) Added the primary output of the only windows application (within the solution) to the setUp project.
3) Right click on SetUp project -> VIEW -> USER INTERFACES; then added a textboxA.
4) Right click on SetUp project -> CUSTOM ACTIONS; This has 4 options Install, UnInstall,Commit,RollBack.
5) Added a new class to the Windows Application project, inherited "Installer" class to this new class. Overridded "Install" method of this class.
6)Right Click on INSTALL option -> ADD CUSTOM ACTION; and the primary output of the windows application was already added, so I didnt add anything.
HERE THE WINDOWS APPLICATION PROJECT HAS BOTH APPLICATION CODE AND ALSO THE OVERRIDDED Install METHOD.
bUT WHEN i TRY TO INSTALL THIS ITS SHOWING SOME ERROR CODE 2869.
Kindly help me with the procedure to extract values from custom textBox into my overridden Install method.
Frankly speaking I have no idea if it is possible to add anything custom to VS setup project.
I had a similar issue and soon lost my patience and migrated to WiX. It integrates with VS very well (you can add WiX XML schema to have your code coloured and Intelisense enabled). With Wix you can do far more custom things than in VS Setup.
Moreover WiX has a great community, loads of examples and last but not least, you can adjust user interface as the VS Setup projects look REALLY ugly.