How do I install this Visual Studio project template? - visual-studio-2010

I can't for the life of me figure this out. The "how to" video shows two .zip files in the ProjectTemplates/Visual C# folder, but I can't find them on this GitHub page... the instructions say under the "downloads tab up above ... download both of the project templates" and I can't even find the tab or the download option for the zip files seen in the video.
Here's what I've tried:
downloaded the single .zip file that contains both projects and put that .zip in the ProjectTemplates/Visual C# folder. Restart VS2010 - New Project, I don't see it as an option
Zipped the nested project, put that in the same folder as above. Restart VS2010 - New Project, but it's not an option
There is no .msi or .vsix file in the download.
Any help is appreciated
https://github.com/irobinson/WebFormsMvp-DNN-Module-Template

The downloads tab that the instructions refer to doesn't exist any longer, which probably explains why you're having trouble finding it.
Luckily, you can still find the downloads here: https://github.com/irobinson/WebFormsMvp-DNN-Module-Template/downloads
Once you've downloaded those and added the zips to your templates folder, you should be good to go.

Related

How to publish my C# project using OpenCV Nuget packages in Visual Studio?

I have developed an opencv application using windows form and C#.
The opencv packages I got from the Nuget packages manager (EMGU.CV and ZedGraph).
Everything works fine in visual studio, but when I publish the project and install the program in my machine, it throws an exception when I click a button that performs some opencv operations.
I guess the opencv packages didn't come along with the final published project, so how do I do to make it export when publishing, I thought it would be an automated process, I have already used other nuget packages and I had no problem with it.
What Am I missing here?
After some days waiting for an answer, and looking for solutions, I've figured it out how to solve this issue.
I came across this question:The type initializer for 'Emgu.CV.CvInvoke' threw an exception
Which led me to this: http://www.emgu.com/wiki/index.php/Download_And_Installation#The_type_initializer_for_.27Emgu.CV.CvInvoke.27_threw_an_exception.
More precisely this part:
First of all, I don't know why the compilation runs fine inside visual studio enviroment and why not when publishing the project as it is. For some reason, the Nuget packges are not enough for publishing the project, you need to add the .dll files manually yourself (not sure why this occurs once I have worked with Nuget packages before and this workaround was not necessary).
To find the .dll files you go to your project directory, then you go to bin\Debug\x64 or bin\Debug\x86 (depends on which operating system you are targetting - 32 bits or 64 bits -in my case I added all .dll files from x86 folder, I guess you can add from both folders if in doubt).
The Debug folder of your project is build every time you run the project inside Visual Studio enviroment, so if your Debug folder is empty then you just need to run the project one time to be able to find the auto generated files inside that folder. Just a side note here, you can use either the Debug or the Release folder inside bin, just remember to check if you compiled the project in Debug mode for Debug folder, or Release mode for Release folder, otherwise the desired folder will be empty, as explained before, I found no differences between the files generated, I added the dll files from Debug\x86.
Once you have located the .dll files, you go to Visual Studio, right click on the project in the Solution Explorer tab, then Add ---> Existing Item.
Go to the folder where the .dll files are, select all and click Add.
Once you have done this, the .dll file will be shown in the Solution Explorer.
Right click on each .dll file added in the Solution Explorer, and open the properties tab by clicking Properties. On the Properties tab, go to option Copy to Directory and change the field to Copy Always (the emgu documentation link provided above states to use the option "Copy if newer", but to make sure I chose "Copy always", it worked fine for me). Repeat the process for all .dll files added.
Now you are ready to go for publishing the project as it is,just remember doing this every time before publishing your project to see if no .dll files are missing, so once you got to final version of your program, run it, and then make sure to check the .dll files, it might have new ones to add or to remove.

Visual Studio: How to add linked item between folders within the same project?

I'd like to share a common .targets file between different folders within the same project (using Visual Studio 2015):
MyProject
MyNupkgContent1
build
MyNupkgContent1.props
Common.targets
MyNupkgContent2
build
MyNupkgContent2.props
Common.targets <-- should be added as link
When I try to "add as linked" Common.targets to MyNupkgContent2/build, the dialog closes but does not actually add the link. Adding files as links from a different project works fine. Is it possible to link files between folders in the same project?
I'm not certain as to how you should go about linking it but depending on contents and size of application, your best bet may be simply going into your packages and manually copying + pasting them into MyNupkgContent2

How to build FaceDetect/cnn_face_detection project on github?

I want to use the https://github.com/FaceDetect/cnn_face_detection project stored on Github repository but it shows so many different files and no proper documentation is available. Can anyone tell me how to build that github project into an executable?
If the github project has releases or tag, like tornado releases on github.
Then you can run
pip install https://github.com/project_name/archive/version.tar.gz
like this:
pip install https://github.com/tornadoweb/tornado/archive/v4.3.0.tar.gz to install the github online project.
But when the project does't have release tab. You need clone the project and compile from source.
In most cases, you can run python setup.py install.
The question has a python tag. So take python project as an example.
GitHub is mostly used for code. in various languages
How to make any github project usable or executable is specific to the language and to the kind of the project itself.
Also it need to be careful with the license terms, the state of reliability and completeness of the project you intend to work on (i.e: github.com/leezivin/FaceDetection_CNN – snakecharmerb); The fact that the specific project you mention, at the time, do not have a README.md and a license file jet , let's suggest to contact the author or someone contribute/commit the sources for any further informations.
btw the project you mention appears to be a c++ language project; so you need to be able to compile and link it ( Clean an Rebuid ) in some form of executable; The specific repo: cnn_face_detection contains Visual Studio solutions and projects therefore the easy way could be by using Visual Studio and open/import the artifacts ( it depends by version of visual studio you eventually can use ).
It is also required:
to choose if you intend to trust ( or not to trust ) the code:
to take care to the paths of the dependencies referenced by the prj because likely they need to be changed to the actual paths were you clone ( download ) the sources on your own filesystem. if don't do that you may not be able to compile the solution (i.e the three projects contained in the repo ):
By looking around the project, you will find folders named "VC2010" and "VC2006". This is a good clue that this is a Microsoft Visual C (or Visual Studio) based project. Inside you will find .sln and .vcxproj files, which are "solution" and "project" files, according to this list
Download and install Visual Studio from here. There are several options, try the Community edition first.
Download the source code of the project from github. To keep it simple you can just use "Download ZIP" button on the project home page.
Run Visual Studio and follow these directions to open one of the solution (.sln) files:
On the File menu, click Open Solution. The Open Solution dialog box opens.
Navigate to the solution you want.
Click the solution folder, which displays and selects the solution file within the folder. If no solution file is visible, verify that the value in the Files of type list box is Solution Files.
Click Open.
Build using these instructions. At this point you either have an .exe or a .dll (depending on which project you're building).

How to Run Program Downloaded From GitHub

I am new to running programs off GitHub.
I have downloaded Apriori Algorithm by Omar Gameel Salem from GitHub. I downloaded the .rar file and extracted it to a folder.
Can anyone can tell how to open the code in .NET and run it using Visual Studio 2008.
Extract the .rar to a folder
Open the folder
Look for a file with a .sln extension. (They are normally purple)
Open the .sln
Once Visual Studio loads the project, click Build -> Build Solution
After that, you should be good to go, just click the play button to run the program.

Compressing(Zipping) VS2010 Solutions - issue when opening

I need to compress a Visual Studio 2010 Solution into zipped folder, so I can transfer it over email.
I have done this before, but for some reason, when I just tried it, and tested reopening the zipped solution, I get the following
*C:\Users\Eric\AppData\Local\Temp\Temp3_WcfServiceConsole.zip\WcfServiceConsole\WcfServiceConsole\WcfServiceConsole.csproj:
error : Unable to read the project file 'WcfServiceConsole.csproj'.
C:\Users\Eric\AppData\Local\Temp\Temp3_WcfServiceConsole.zip\WcfServiceConsole\WcfServiceConsole\WcfServiceConsole.csproj:
The project file could not be loaded. Could not find a part of the path 'C:\Users\Eric\AppData\Local\Temp\Temp3_WcfServiceConsole.zip\WcfServiceConsole\WcfServiceConsole\WcfServiceConsole.csproj'.
I can't figure out why it would be doing this?
Is there another way I can zip up the solution correctly so that this doesn't happen?
It is pretty nice that Windows Explorer lets you look into a .zip file as though it is a directory. That's where the buck stops though, there is no .zip archive support built into Visual Studio.
You have to unzip the archive first.
To avoid a mistake like that in the future, switch Explorer to Programmer Mode. Start + Run, explorer.exe. Organize, Folder and Search options, View tab. Untick the "Hide extensions for known file types" checkbox.
You need to unzip the zip before trying to open it. It looks like you're just double-clicking the zip in Windows Explorer, then trying to open the solution file directly from the zip archive. That is, the path:
C:\Users\Eric\AppData\Local\Temp\Temp3_WcfServiceConsole_**.zip**\WcfServiceConsole\WcfServiceConsole\WcfServiceConsole.csproj
appears to be a path within a zip file. Visual Studio can't work with this until you unzip it.

Resources