In what way are these directories used by Visual Studio?
Get-ChildItem -Path $Env:USERPROFILE\AppData\Roaming\Microsoft\VisualStudio
Mode LastWriteTime Length Name
---- ------------- ------ ----
d----- 2019-12-27 20:24 10.0
d----- 2019-12-27 17:28 11.0
d----- 2020-01-14 08:34 15.0
d----- 2019-12-23 11:52 15.0_52fe5057
d----- 2020-03-24 11:10 15.0_6cf8de10
d----- 2019-12-31 10:10 15.0_6cf8de10Exp
d----- 2020-06-29 16:43 15.0_cffcaa9f
They are folders containing the various preferences of parts of the different versions of Visual Studio you have installed. Looking in mine (I only have VS2019 installed) and guessing based on filenames due to binary data; it contains: the window layouts of VS, Team Explorer previously-configured connection details, Activity logs, auto-recover project backup files, UI layout, and backup User settings.
Related
I have a system which is offline and has no access to Internet.
I want to add Java Card plugin to my Netbeans. How can I add Java Card plugin on my PC (which is offline)?
I could not find .nbm file for Java card for its offline installation.
P.S. I have a 2nd system which is up and running and has Java Card plugin on its Netbeans. I thought this might help to copy files from 2nd PC to 1st PC. But I was looking to a better approach.
This following approach is a bit of a hack, but it worked for me. On a NetBeans installation which has internet access, but does not yet have Java Card installed:
Go to Tools > Plugins, and download/install the Java Card plugin. In my case installing the Java Card plugin triggered the download and installation of several other required plugins:
Specifically choose not to restart NetBeans during the plugin process.
Within your NetBeans installation directory, the installation of the Java Card plugin will have created a directory named javacard/update/download. In my case the full path of that directory is C:/NetBeans14/javacard/update/download, but yours will almost certainly be different.
Copy the content of that directory to some arbitrary empty directory on your machine without internet access.
The copied directory on your offline machine should look similar to this, with a couple of XML files and thirteen plugins with the nbm file extension:
07/30/2022 02:39 PM 1,633 additional_information.xml
07/30/2022 02:39 PM 2,619 install_later.xml
07/30/2022 02:37 PM 110,204 org-netbeans-modules-javacard-apdu-io.nbm
07/30/2022 02:37 PM 89,498 org-netbeans-modules-javacard-apdufile.nbm
07/30/2022 02:37 PM 109,226 org-netbeans-modules-javacard-common.nbm
07/30/2022 02:37 PM 110,491 org-netbeans-modules-javacard-console.nbm
07/30/2022 02:37 PM 106,018 org-netbeans-modules-javacard-filemodels.nbm
07/30/2022 02:37 PM 84,771 org-netbeans-modules-javacard-kit.nbm
07/30/2022 02:37 PM 89,855 org-netbeans-modules-javacard-platform-ui.nbm
07/30/2022 02:37 PM 426,563 org-netbeans-modules-javacard-project.nbm
07/30/2022 02:37 PM 177,235 org-netbeans-modules-javacard-ri-platform.nbm
07/30/2022 02:38 PM 131,152 org-netbeans-modules-javacard-spi.nbm
07/30/2022 02:37 PM 92,895 org-netbeans-modules-properties-based-dataobjects.nbm
07/30/2022 02:37 PM 89,160 org-netbeans-modules-simple-project-templates.nbm
07/30/2022 02:37 PM 90,796 org-netbeans-modules-swing-customizerlayout.nbm
The thirteen nbm files correspond to the thirteen plugins listed in the Verify Certificate screenshot above.
Finally, on the offline machine select Tools > Plugins > Downloaded > Add Plugins, navigate to the directory containing the copied plugins that you just created (named JavaCardPlugins in my case), select all of the nbm files for installation, select All Files from the Files of Type drop list, and click the Open button:
Once Java Card and its associated plugins have been installed, choose to restart NetBeans, and you should see that the Java Card plugin is listed under Tools > Plugins > Installed.
Notes:
It is important not to immediately restart NetBeans after installing Java Card on the machine with internet access because the nbm files to be copied to the offline machine will be deleted by NetBeans during the restart.
You may not want to mess with your existing NetBeans installation on the machine with internet access, since you would need to uninstall/reinstall Java Card. So either create a second temporary NetBeans installation solely for downloading/installing/copying the nbm files on that machine, or use an alternative machine with internet access.
You don't need to understand the purpose of the individual plugins, or the sequence in which they should be installed. Just select them all for installation at the same time and NetBeans will work out what needs to be done.
Although I have only verified this approach for Java Card, I suspect it would probably work for the offline installation of any plugin.
When trying to generate a file called head with the current commit hash during a docker build (for internal .NET service versioning) it seems that docker is unable to pull the .git folder into the image at all.
Given the following DockerFile
FROM alpine/git AS version
WORKDIR /src
COPY .git/ ./.git/
RUN git rev-parse HEAD > head
This happens:
=> ERROR [version 2/4] COPY .git/ ./.git/ 0.0s
------
> [version 2/4] COPY .git/ ./.git/:
------
failed to compute cache key: "/.git" not found: not found
What is perhaps more interesting is that when using COPY . . it fails like so:
=> ERROR [version 4/4] RUN git rev-parse HEAD > head 1.7s
------
> [version 4/4] RUN git rev-parse HEAD > head:
#36 1.613 fatal: not a git repository (or any of the parent directories): .git
------
executor failed running [/bin/sh -c git rev-parse HEAD > head]: exit code: 128
The git folder is at the same root as the Dockerfile as ls -Force (windows powershell version of ls -a) the following result is returned (a few folders redacted for privacy):
Mode LastWriteTime Length Name
---- ------------- ------ ----
d----- 11/4/2020 2:45 PM .ci
d--h-- 3/17/2021 3:06 PM .git
d----- 2/3/2021 6:12 PM .github
d----- 9/8/2020 7:22 PM .idea
d----- 1/20/2021 1:50 PM .run
d--h-- 9/29/2020 6:53 PM .vs
d----- 3/17/2021 10:55 AM build
d----- 11/4/2020 2:45 PM lib
d----- 9/7/2020 11:12 AM src
d----- 11/4/2020 2:45 PM tests
-a---- 3/15/2021 4:19 PM 340 .dockerignore
-a---- 2/3/2021 6:12 PM 186 .editorconfig
-a---- 2/3/2021 6:12 PM 580 .gitignore
-a---- 3/17/2021 4:07 PM 1611 Dockerfile
Unhiding the .git does not change this behavior.
https://stackoverflow.com/a/54150671/1890717 is a related answer that does not seem to be working here. At least on Windows 10
Check if .git is included in your .dockerignore file and if so, remove it.
VSCodeSetup.exe
Installation has failed
Failed to extract installer
I am unable to install or open up the Setup Log.
Trying to install on Windows 8.1 Enterprise
I just downloaded VSCodeSetup.exe and the installation failed with an error dialog when I ran it on Windows 7.1 SP1.
I then right clicked on the VSCodeSetup.exe file and used 7Zip to extract the archived files to a VSCodeSetup folder, with the resulting files:
Mode LastWriteTime Length Name
---- ------------- ------ ----
----- 4/22/2015 8:28 AM 140782 background.gif
----- 4/27/2015 6:22 PM 60255967 Code-0.1.0-full.nupkg
----- 4/27/2015 6:22 PM 74 RELEASES
-a--- 4/30/2015 9:25 AM 1911 SquirrelSetup.log
----- 4/24/2015 11:12 AM 1492992 Update.exe
I then opened PowerShell (a CMD window would also work). I cd'd into the VSCodeSetup folder and ran the following command:
PS>.\Update.exe --install=.
Installation completed successfully and Visual Studio Code opened.
Hope this helps.
Rick
I keep getting these 11 errors in Visual Studio:
Error 456 Could not copy the file "_bin_deployableAssemblies\de\System.Web.Mvc.resources.dll" because it was not found. ViMuDat
Error 457 Could not copy the file "_bin_deployableAssemblies\de\WebMatrix.WebData.resources.dll" because it was not found. ViMuDat
Error 458 Could not copy the file "_bin_deployableAssemblies\de\WebMatrix.Data.resources.dll" because it was not found. ViMuDat
Error 459 Could not copy the file "_bin_deployableAssemblies\de\System.Web.WebPages.resources.dll" because it was not found. ViMuDat
Error 460 Could not copy the file "_bin_deployableAssemblies\de\System.Web.WebPages.Razor.resources.dll" because it was not found. ViMuDat
Error 461 Could not copy the file "_bin_deployableAssemblies\de\System.Web.WebPages.Deployment.resources.dll" because it was not found. ViMuDat
Error 462 Could not copy the file "_bin_deployableAssemblies\de\System.Web.WebPages.Administration.resources.dll" because it was not found. ViMuDat
Error 463 Could not copy the file "_bin_deployableAssemblies\de\System.Web.Razor.resources.dll" because it was not found. ViMuDat
Error 464 Could not copy the file "_bin_deployableAssemblies\de\System.Web.Helpers.resources.dll" because it was not found. ViMuDat
Error 465 Could not copy the file "_bin_deployableAssemblies\de\NuGet.Core.resources.dll" because it was not found. ViMuDat
Error 466 Could not copy the file "_bin_deployableAssemblies\de\Microsoft.Web.Infrastructure.resources.dll" because it was not found. ViMuDat
I try to build a project that was developed with Visual Studio 2010, but I am using Visual Studio 2012. If I build it twice, it works without errors.
How can I fix that?
I have found Bin Deploying ASP.NET MVC 3 and _bin_deployableAssemblies and MSBuild, but I could not manage to fix those errors. Could somebody please explain step by step what I should do? I am new to C# and Visual Studio.
I think this error is also the problem why I can't Check in the project into a TFS.
I have these assemblies in my bin folder:
D:\...\bin> ls
Mode LastWriteTime Length Name
---- ------------- ------ ----
d---- 18.12.2012 23:53 de
-a--- 15.12.2012 21:11 783648 EntityFramework.dll
-a--- 15.12.2012 21:11 834489 EntityFramework.xml
-a--- 18.12.2012 23:53 42496 LumenWorks.Framework.IO.dll
-a--- 18.12.2012 23:53 116224 LumenWorks.Framework.IO.pdb
-a--- 18.03.2010 18:31 53640 System.ComponentModel.DataAnnotati
ons.dll
-a--- 18.03.2010 18:31 1328984 System.Data.dll
-a--- 18.03.2010 18:31 919880 System.dll
-a--- 18.03.2010 18:31 24944 System.Web.Abstractions.dll
-a--- 18.03.2010 18:31 2824528 System.Web.dll
-a--- 05.01.2011 14:45 130408 System.Web.Helpers.dll
-a--- 03.05.2012 08:55 37861 System.Web.Helpers.xml
-a--- 05.01.2011 16:42 445280 System.Web.Mvc.dll
-a--- 03.05.2012 08:51 777665 System.Web.Mvc.xml
-a--- 18.03.2010 18:31 24928 System.Web.Routing.dll
-a--- 05.01.2011 14:45 136552 System.Web.WebPages.dll
-a--- 03.05.2012 08:55 51735 System.Web.WebPages.xml
-a--- 18.03.2010 18:31 941904 System.Xml.dll
-a--- 18.12.2012 23:53 244736 ViMuDat.dll
-a--- 18.12.2012 23:53 321024 ViMuDat.pdb
-a--- 18.12.2012 23:53 125308 ViMuDat.XML
D:\...\bin\de> ls
Mode LastWriteTime Length Name
---- ------------- ------ ----
-a--- 12.01.2011 16:04 15720 System.Web.Helpers.resources.dll
-a--- 12.01.2011 17:24 32096 System.Web.Mvc.resources.dll
-a--- 12.01.2011 16:04 15208 System.Web.WebPages.resources.dll
If you are bin deploying MVC 3, there are some assemblies that you have to package up in your deployment. Scott Hanselman has a good write up on what and where as well.
If you have copied the assemblies, make user to add then as 'content' to your Visual Studio project. Then they will be automatically copied into the correct structure in the bin directory when you build.
EDIT:
This was the information in the article that helped solve the problem:
C:\Program Files (x86)\Microsoft ASP.NET\ASP.NET MVC 3\Assemblies and
C:\Program Files (x86)\Microsoft ASP.NET\ASP.NET Web Pages\v2.0\Assemblies contained the missing dlls
Those dlls had to be copied manually to _bin_deployableAssemblies of my project.
You might find it easier to just install the packages via nuget.
NuGet is a package manager which makes it easy to install and update dependencies in your project. It is a Visual Studio extension which can be installed from here.
If you are still using ASP.NET MVC3, you can install an older version of the package by using the command Install-Package Microsoft.AspNet.Mvc -Version 3.0.20105.1.
This will add the binaries as normal references which are included in the bin folder when your project is built. This will save you having to do the _bin_deployableAssemblies approach. Most other popular 3rd party frameworks (as well as a lot of the new Microsoft Web stack) are also available on nuget.
This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.
Closed 11 years ago.
PROBLEM IS SOLVED!
Follow the instructions Dons posted here
Open your environment variables (My Computer -> Properties (in the context menu) -> Advanced)
Add to or make a new environment variable C_INCLUDE_PATH so it points to MPI's include directory. In my case, /c/program files/mpich2/include.
Add to or make a new environment variable LIBRARY_PATH so it points to MPI's lib directory. In my case, /c/program files/mpich2/lib
Hide libmpi.a somehow. If need be, you can fix this later. It is a hack but you cannot build haskell-mpi without doing it because ld will fail. I renamed it to _libmpi.a
Now haskell-mpi should build on windows. Anticipating more trouble down the line, but it built, and it solved my problem.
I am wanting to use haskell-mpi on a lab machine at one of my university labs to do my final project for my parallel computing class, but I am running into trouble trying to get haskell-mpi to build against MPICH2.
haskell-mpi is pretty much completely undocumented, and digging through their git repository has helped me program some example programs on it but has done nothing to help me set it up on Windows. On my personal linux system, I had no trouble setting up and running haskell-mpi against MPICH2.
The problem is probably in one of cabal, the way MPICH2 is installed, or with haskell-mpi's cabal configuration, hence the choice of tags.
I am open to experimenting here for the sake of troubleshooting, and adding more information as needed, but eventually I will no longer have access to these machines.
I have administrator rights in the lab where I will be running this, so if the problem is with the MPICH2 installation itself, I could indeed reinstall it.
cabal fails as follows when I try to install haskell-mpi:
Resolving dependencies...
Configuring haskell-mpi-1.0.0...
cabal: Missing dependency on a foreign library:
* Missing C library: mpi
This problem can usually be solved by installing the system package that
provides this library (you may need the "-dev" version). If the library is
already installed but in a non-standard location then you can use the flags
--extra-include-dirs= and --extra-lib-dirs= to specify where it is.
cabal: Error: some packages failed to install:
haskell-mpi-1.0.0 failed during the configure step. The exception was:
ExitFailure 1
Here are what I tried giving for --extra-lib-dirs and --extra-include-dirs:
--extra-lib-dirs="C:\Program Files\MPICH2\lib"
--extra-include-dirs="C:\Program Files\MPICH2\include"
I've tried reordering where I put those flags, escaping the backlashes, using the short path PROGRA~1 and various permutations of these. So I don't think this is going to help. I need to know what the mpi dependency actually means and figure out how I will satisfy it so that this library can actually build. Here is what lives in the two aforementioned folders at this moment:
Libs:
Volume in drive C has no label.
Volume Serial Number is 5406-5C5C
Directory of C:\Program Files\MPICH2\lib
04/22/2011 01:20 PM <DIR> .
04/22/2011 01:20 PM <DIR> ..
01/31/2011 03:59 PM 515,704 cxx.lib
01/31/2011 04:23 PM 137,434 fmpich2.lib
01/31/2011 04:25 PM 410,982 fmpich2g.lib
01/31/2011 04:29 PM 162,690 fmpich2s.lib
01/31/2011 04:53 PM 0 libfmpich2g.a
01/31/2011 04:53 PM 0 libmpi.a
01/31/2011 04:53 PM 215,528 libmpicxx.a
01/31/2011 04:16 PM 10,618 mpe.lib
01/31/2011 04:46 PM 135,434 mpi.lib
9 File(s) 1,588,390 bytes
2 Dir(s) 221,505,835,008 bytes free
Include:
Volume in drive C has no label.
Volume Serial Number is 5406-5C5C
Directory of C:\Program Files\MPICH2\include
02/01/2011 05:38 PM <DIR> .
02/01/2011 05:38 PM <DIR> ..
11/17/2009 09:46 PM 4,857 clog_commset.h
11/02/2007 05:50 PM 696 clog_const.h
01/31/2011 03:50 PM 731 clog_inttypes.h
11/17/2009 09:46 PM 1,353 clog_uuid.h
10/21/2010 01:20 PM 355 mpe.h
11/17/2009 09:46 PM 11,102 mpe_log.h
11/02/2007 05:50 PM 1,833 mpe_logf.h
11/17/2009 09:46 PM 1,322 mpe_misc.h
01/31/2011 03:50 PM 57,128 mpi.h
01/31/2011 04:23 PM 3,251 mpi.mod
01/31/2011 03:50 PM 97,267 mpicxx.h
01/31/2011 03:51 PM 19,051 mpif.h
01/31/2011 03:50 PM 16,765 mpio.h
01/31/2011 04:23 PM 13,668 mpi_base.mod
01/31/2011 04:23 PM 30,866 mpi_constants.mod
01/31/2011 04:23 PM 7,802 mpi_sizeofs.mod
16 File(s) 268,047 bytes
2 Dir(s) 221,505,830,912 bytes free
Is there anything here that might be recognizably missing?
I am quite stumped at this point. Just about any suggestion would be helpful.
Sincerely, Barend.
PS: This should probably be tagged "haskell-mpi", but I'm not allowed to make new tags. I guess nobody else is really using it yet.
EDIT: Following Dons' suggestion,
I installed MingGW and MSYS. After running mingw-get update, I used mingw32-get to retrieve libtools, mingw32-utils, and mingw32-binutils. I set the following environment variables for the whole system using the Windows configuration GUI:
LIBRARY_PATH="C:\Program Files\MPICH2\lib"
C_INCLUDE_PATH="C:\Program Files\MPICH2\include"
echo $LIBRARY_PATH and echo %LIBRARY_PATH% now both work as expected, no surprises there. The environment variables are set. Making progress.
cabal install haskell-mpi still produces the same output it did before.
Played with ld for a long time, huge red herring...
I had to hide libmpi.a from ld to get it to work, but haskell-mpi now builds!
Putting step by step details at the top.
I need to know what the mpi dependency actually means
The line extra-libraries: mpi means that Cabal will add -lmpi to the ld linker options. In addition, tools that process headers will search in the include paths.
So, how do we help GHC and binutils find that library?
According to the wiki, assuming you have mingw or msys,
If you need to link to C-software, define an environment variable C_INCLUDE_PATH that lists the directories where the header files can be found. For linking the libraries you need to define an environment variable LIBRARY_PATH as well, listing the directories where .a and .lib files can be found.
So try setting the paths to include the path to the headers and libraries.