I am trying to add ImageListView in my toolbox of VS2010 ,but I am not able to do so . When I right click on toolbox window -> choose Item option their I can see ImageListView checkbox selected ,I have also added ImageListView.dll file in my project folder but still nothing is working ,what can be the solution to fix this issue
I found the same problem while adding imagelistview.dll in my project. Finally I solved the problem with some solution.
Check your target framework in your project properties. If it is .Net Framework 4.0 client profile then change it to .NetFramework 4.0. And rebuild your project once. Then it will work fine.
ImageListView is now part of the NuGet Package Manager
Install it via the link, and go through the Visual Studio Extension Manager
http://docs.nuget.org/docs/start-here/installing-nuget.
When this is downloaded and installed, open your project solution and you should now see the Package Manager Console down the bottom. You the following link to add the tool to your solution:
http://www.nuget.org/packages/ImageListView/
Related
I have some libraries like Colorful.Console from GitHub, I used to use it frequently. Every time I started a new project, I have to install this library de novo. How can I install it so that it became available every time?
Use the NuGet package for it
Go to Tools >> NuGet Package Manager >> Manage Packages for Solution
Click on the "Browse Tab"
Type in "Colorful" and the package will appear
Add it to the projects you need.
You'll find NuGet packages for many of the things on GitHub. That's the best way to re-use them.
Option 1
Create a new console project, add the desired NuGet package(s). Next export the project as a project template. Make sure to provide a meaningful name for each template. Here are some example templates.
Option 2
Open a project up with the desired NuGet package(s) installed, in solution explorer double click the project node, select the ItemGroup with the package. Drag it to the IDE toolbox then optionally right click on the new item and give it a meaningful name.
To use it in a new project, open the project file as done above and drag the code from the toolbox into the project file, save it then Visual Studio will download the package.
Which is better? it dependents on what suits you, I always use exported project templates and sometimes use the toolbox method along with Resharper which allows creating of snippets that can be used in project files similar to option 2 but not stored in the toolbox.
I downloaded AvalonDock from GitHub and I open in in Visual Studio.
There is no "Target framework" and the ComboBox list is empty and the ComboBox is disabled.
Anybody know why?
Note: I have a .net Core WPF application and add AvalonDock project as a dependency and everything works well.
The reason is most likely because of Multi-Targets.
Open the project in Notepad, or Visual Studio by right clicking the Project name, and selecting 'Edit Project File' (if available), and look for a line like this:
<TargetFrameworks>netstandard1.4;net40;net45</TargetFrameworks>
Here is more information from Microsoft:
https://learn.microsoft.com/en-us/dotnet/standard/frameworks
Unfortunately, there is no Gui way to Multi-target, so that is why you will not see a target framework in your project.
Every time I add any nuget package to my .net core application, it stays for a bit but it seems like after I start a debug and end it, the nuget package removed automatically from Visual studio project.
Is any thing changes in visual studio 2019?
After searching on internet I found solution on this developer community Website.
Close VS2019
Delete the ".vs" folder
Open VS2019, add the NuGet package
Save all
I suspect "Save all" after adding a NuGet package might be key here.
You should see: In the NuGet.Config file, DisabledPackageSources tag shows you the sources which are currently disabled, so if you want to make them be active, add the sources under the ActivePackageSource. Anyway, since it works well now after you edit the DisabledPackageSources, at least, we make sure that it would be related to the NuGet.Configfile.
I want to create a .rdlc file in a WPF project but adding add new dialog box doesn't provides any option to create a new report. I have installed Microsoft SQL server data tools, express localdb and prerequisites for ssdt. Can anyone point me in the direction why this option is not available.
Note: When I installed VS 2015 some of the features were not properly installed, well I installed some of those packages which I required from time to time. Now there are still a couple of packages missing. One is Microsoft report viewer add-on for visual studio 2015. I searched for this add-on on the internet but I wasn't able to locate it.
I also installed report viewer runtime as I was missing assembly dll(s) for adding reference to Microsoft.ReportViewer.WinForms.
I have attached some screenshots for reference.
vs-error-log
installed-packages
p.s. if you think that this is a possible duplicate, well I tried a couple of answers already on stack overflow which didn't worked in my case. That's why I am posting a separate question.
I had this problem and solved it by the following:
Get the nugget package for the Microsoft Report Viewer 2015
a. Right click the project and choose Manage NuGet Packages
b. Click on the browse tab
c. The package used was Microsoft.Reportviewer.2015 by AdrienGuillerot v12.0.2.2402
Add the report viewer to your toolbox.
a. Right Click, then Choose Items...
b. Browse to the dlls in the package.
Put the control in your webform.
a. Drag the control from your toolbox onto the form.
b. Set the Dock property to fill.
c. Add the following code to YourForm.Designer.cs in the InitializeComponent() method.
this.Controls.Add(reportViewer1);
I have created a setup project in visual studio. It works fine, now when i make some changes, create new setup file and then try to execute it. It gives me this error.
I don't want user to bother with this step. I want it to update the application or uninstall it first and then install new version.
How could i do this.
Kindly guide.
Windows Installer automatically uninstalls the old version if you increase your package ProductVersion and change the ProductCode. This can be done in the project Properties pane.
If you don't do this, you need to uninstall your old package manually using the Control Panel applet.