Quantcast
Channel: Visual Studio General Questions forum
Viewing all 21115 articles
Browse latest View live

VS2015 Code Metrics Powertool CA0055 Error

$
0
0

Context:

I downloaded the code metrics powertool (https://www.microsoft.com/en-us/download/details.aspx?id=48213&wa=wsignin1.0).

  • I'm using Powershell to automate the command line call.
  • I'm analyzing both new and older .dll and .exe files. 
  • I'm running the powertool on a VM where I have administrator access; analyzing files on that same VM.

On 84% of cases (out of about 10,000), I receive the following error (where exampleFileName is a path to a file that does exist at that location):

.\metrics : error : CA0055 : Could not load file: 'E:\exampleFileName.dll'.
At line:48 char:13
+             .\metrics /f:$filePath /o:$outFilePath /directory:$directory
+             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (error : CA0055 ...exampleFileName.dll'.:String) [], RemoteException
    + FullyQualifiedErrorId : NativeCommandError


Note: I don't have FxCop.exe in the FxCop directory, just running off of metrics.exe.

Question:

Could this be from running the code from the ISE? Unfortunately I do not get any analysis results when this error is hit; the program just continues to the next file. I get the same results running from the Powershell console. 

Could this be a missing reference error? (as per https://social.msdn.microsoft.com/Forums/en-US/6a9db9d2-7316-48a4-b35f-4e939c86a8e0/ca0055-could-not-load-eflanguagesalesposeidonwebintegrationdll-ca0052-no-targets-were?forum=vstscode)

I am receiving some CA0058 missing reference errors as well, just wondering if this could be more missing reference errors not being cast correctly.

Could this be a .NET versioning issue? (as per https://support.microsoft.com/en-us/kb/913447) 

Are there any ways to work around this issue that do not involve changing the project files? 


Cannot sign in or create account

$
0
0

I am using Visual Studio(VS) 2015, Community edition.

The trial period has expired and I am trying to sign in.

I very rarely use my Microsoft(MS) account and even less so for VS.

I tried to sign in using my work email. I tried my password for that account but it failed with the error message that the account name and password does not exist. I tried using "forgot password" to get a temporary one but that resulted in the message:

"The user ID you entered does not exist. Please check that you have typed your user ID correctly."

I tried creating an account but as soon as I enter my work email address, I get the error message:

"<myemail> is already a Microsoft account. Please try a different email address."

Also, I had to sign in using my credentials to post this question, which indicates that I do have an account and that I do have the correct password. I don't know any other way to proceed.

Stuck at LocalESPCui for en-us Dev12-x86

$
0
0

I'm trying to install Visual Studio Community 2015, but my installation stuck at LocalESPCui for en-us Dev12-x86. I can't find the file in ProgramData. But I don't know how to get that file there... I hope someone can help me. P.S. Happy new year!

Trouble Installing Visual Studio Community 2017 RC

$
0
0

I've tried several times to install Visual Studio Community 2017 RC several times without success. I also uninstalled and re-installed, as well as the "repair" option a few times. After uninstalling, I used a tool called TotalUninstaller to completely remove any remnants of Visual Studio before trying to install it again. Even after doing that, the installer quits with message "Setup Operation Failed".

Here is the log file:

[2f68:001f][2017-01-01T01:57:32] Package 'Win10SDK_10.0.14393.33,version=10.0.14393.3306' failed to install. Command executed: "c:\windows\syswow64\\windowspowershell\v1.0\powershell.exe" -NoLogo -NoProfile -ExecutionPolicy Unrestricted -InputFormat None -Command "& """C:\ProgramData\Microsoft\VisualStudio\Packages\Win10SDK_10.0.14393.33,version=10.0.14393.3306\WinSdkInstall.ps1""" -SetupExe sdksetup.exe -PackageId Win10SDK_10.0.14393.33 -LogFile """C:\Users\iRobStudent\AppData\Local\Temp\dd_setup_20161231235240_222_Win10SDK_10.0.14393.33.log""" -SetupParameters """/features OptionId.WindowsSoftwareDevelopmentKit OptionId.WindowsSoftwareLogoToolkit OptionId.NetFxSoftwareDevelopmentKit /quiet /norestart"""; exit $LastExitCode", Return code: 1, Details: Incorrect function.
[2f68:001f][2017-01-01T01:59:07] Package 'Microsoft.Net.Core.SDK,version=15.0.26009.0,chip=x64' failed to install. Command executed: "C:\ProgramData\Microsoft\VisualStudio\Packages\Microsoft.Net.Core.SDK,version=15.0.26009.0,chip=x64\dotnet-dev-win-x64.1.0.0-preview4-004233.exe" C:\Program Files (x86)\Microsoft Visual Studio\2017\Community /log C:\Users\iRobStudent\AppData\Local\Temp\dd_setup_20161231235240_251_Microsoft.Net.Core.SDK.log /quiet /norestart, Return code: 1638, Details: Another version of this product is already installed. Installation of this version cannot continue. To configure or remove the existing version of this product, use Add/Remove Programs on the Control Panel.
[2f68:001f][2017-01-01T02:10:39] Package 'Microsoft.Ancm.IISExpress.Msi,version=1.0.1967,chip=x64' failed to repair. MSI: C:\ProgramData\Microsoft\VisualStudio\Packages\Microsoft.Ancm.IISExpress.Msi,version=1.0.1967,chip=x64\ancm_iis_express_x64_en.msi, Properties:  REBOOT=ReallySuppress ARPSYSTEMCOMPONENT=1  ALLUSERS="1"  MSIFASTINSTALL="7"  REINSTALL=ALL  REINSTALLMODE="cmuse" IGNOREDEPENDENCIES=ALL , Return code: 1316, Details: The specified account already exists.

Any suggestions on what to try next?


blue double arrow on shortcut icon under Windows 10

$
0
0

Hello,

After a recent update of Windows 10 pro, when i install my softwares with my installers (made as a VS setup project), a double blue Arrow is overlayed on the icon of the desktop shortcuts of my program.

Some one can explain why, and especially how to remove these blue arrows?

best regards

Pascal

Please help me fix this!

$
0
0

So i got this code from youtube, i copy-pasted it but my VS doesn't like it. (Error)

https://gyazo.com/a002262be0608b364dc32813c86a743d - Error

https://hastebin.com/atuvicohas.vbs - Code.

Can someone please fix this?

LNK2019 "Unable to add a project-to-project reference"

$
0
0

I have several VS projects that I need to build. It may be worth noting that the last time these projects were built was with VS2008 and now I'm required to use VS2015. I've noticed the msdn link on error code LNK2019 points out a possible cause of this error that I believe is related to my case. Its described as 

"A build dependency is only defined as a project dependency in the solution. In earlier versions of Visual Studio, this level of dependency was sufficient. However, starting with Visual Studio 2010, Visual Studio requires a project to project reference. If your project does not have a project-to-project reference, you may receive this linker error. Add a project-to-project reference to fix it."

There are a total of "5" projects i'm building. I've been able to build three successfully but the last two keep complaining about external symbols with error code "LNK2019". In fact the majority of these "LNK2019" errors that show up all point to one file called xxxxxAPI.lib (si_api.obj). I've tried following the instructions in adding a project to project reference from here <https://msdn.microsoft.com/en-us/library/f3st0d45.aspx>. However when I go into "Add Reference" i'm greeted with a black dialog box giving me no options in projects to add.

I'm sure this is a lack of understanding on my part and would appreciate any feedback. If you would be so kind in being detailed on your answer that would be great as I'm not a VS guru.

Thanks

~S

getting started with visual studio

$
0
0
I've used previous versions of visual studio, but its been awhile. I have a fortran77 code I want to compile that consists of .f source files and include files with a .inc extension. I created the project ok and added the source files. I even set the include directory under Project > ProjectName Properties > Fortran > General but when I tried to compile the project, it still doesn't see the include files (error#5102: Cannot open include file 'filename') I know I must be lissing something obvious, but I don't know what.

Solution turns to single project - Multi project impossible

$
0
0

I was wondering what could I be doing wrong when I have the empty solution turning into a single project as soon as I create the first project.

I create an empty solution in an attempt to create a multi-project solution.

As soon as I add the first project, the solution header turns into a project one in the solution explorer and the only options are to add items or components, no additional projects.

Trivial question but help would be much appreciated.

Steps to compile .s file in visual studio 2008 ?

$
0
0

Can anyone please tell me the steps to compile the .s files in Visual studio 2008?

I have already installed Windows Embedded Compact 7 in my PC and corresponding SDK application.

Where can I find the Microsoft C library function definitions (i.e. code)?

$
0
0

In order to understand the detailed internal implementations of pointers, etc. I'd like to inspect the library functions of Microsoft C code; the "string.c" code for example (not the "string.h" header file).

Does anybody know where to find / download these code files?

One little code example might be the "_strlen" function. It must be something like below:

size_t _strlen(const char *src) {

char *sTmp = (char *)src;

while (*sTmp++);

return (sTmp - src - 1);

}




Xamarin forms activity indicator stops animating in android only

$
0
0

Hi All,

We are using an activity indicator to indicate to the user that some process is going on, but the activity indicator stops  its animation (gets frozen) when some heavy operation is going on the main thread.
As a fix we tried to run methods in background thread, but this causes sqlite to throw errors like busy , db lock resulting in app crash.
Is it possible to run the activity indicator (or any other loading popup) independent of the main thread (on background thread)?

We have tried ACR user dialogs, gif within webview, AndHUD with no success. 
The BTProgressHUD loader works fine on IOS.

Regards,
Richard

Unexpected error placing data into a CEdit control

$
0
0

Hi,

I have a CPropertyPage dialog, with a CEdit control, and it if failing with an exception when I put data into it. The CEdit control has "Number" set to true in its Properties, text centered and all other values set to their standard defaults.

During the OnInitDialog function I obtain the current value for an "int" variable, and use the the following code to update the CEdit control:

    if (m_nHeightModifier == 0)
    {
        m_edHeightModifier.Clear();
    }
    else
    {
        szString.Format(_T("%i"), 15); // This value works
        szString.Format(_T("%i"), 13); // This value works
        szString.Format(_T("%i"), 12); // This value fails
        m_edHeightModifier.SetWindowText(szString);
    }
    return;

The szString.Format show different values I have hardcoded for testing. With the values of 15 and 13 the code worked. WIth a value of 12 or below the code fails.

Many thanks in advance

WinUSB Application template broken in VS 2015/2017?

$
0
0

I was going to follow this tutorial here: https://msdn.microsoft.com/en-us/library/windows/hardware/dn376872(v=vs.85).aspx

I installed the Windows 10 WDK and decided to try it. When I create a new WinUSB Application template, the Solution Explorer only has one solution which contains the .cpp and .h files, but the second solution with the .inf file is not there. Same thing happens for VS 2017RC. I'm puzzled as to why this is happening.


Licence

$
0
0

Hello, please help me in something.

First of all sorry for my english. 

I would like to make a program with visual studio 2015. 

Which version do I need to use, for commerical type. I would like to sell my program, or I would like to make it for free ( or a corporation use my program). 

Now I use Community version, but i think it is not enough for it. So which version support it ? 

Thank you so much!



how to create below project type in visual studio 2015

$
0
0

How could we create below project in visual studio 2015 indicated as below red box?

p.s. the solution below i found is cloned from github: 

https://github.com/MahApps/MahApps.Metro

screenshot


Roahn Luo [MSFT]
MSDN Community Support | Feedback to us
Get or Request Code Sample from Microsoft
Please remember to mark the replies as answers if they help and unmark them if they provide no help.

Where to Refhesh Visual Studio 2015 after creating class files im PM Nuget?

$
0
0
In order to see all created class files, after creating them in PM, I had to close VS2015, reopen and open projetc again. All new files generated were there - but them can not be seen before this close-open operation. Is there any way of refresh without closing VS2015?

Doesn't let me insert a Windows Form in a C++ Empty DLL Project

$
0
0

Heres what happens:

https://gyazo.com/ad19c042f0759f7cd68979089b253da6

Help??

Unable to open VS2010 .dtproj file in VS2013 Professional

$
0
0

I have VS2013 Professional installed on my laptop. I have projects created in VS2010 that I need to run. These are SSIS projects.

The file extensions are .dtproj

I have SQL Server Data Tools 12.0 installed as shown below. I have looked at postings about this but it is confusing as to what to do. Is it possible to import/migrate/upgrade VS2010 projects into VS2013?

Windows Resize Arrows Not Showing Up -- Visual Studio Community Edition 2015

$
0
0

Hi,

Interesting question. I am at a client site and they have Visual Studio Community Edition 2015. Windows, such as the Solution Explorer window or the Properties window or the Output window can't be resized. When we hover the mouse over the barrier line between these windows, no resize arrows show up.

Does anyone have any ideas? I've never seen this issue before.

Thank you!

Croix


g

Viewing all 21115 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>