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

Want to Disable Font Size and Multiple Languages

$
0
0

Hi,

I'm using Microsoft Visual Studio and have written a powerful simulation tool that can be used in many countries.  However, I want to disable two undesired windows "Features" that are breaking my program.  The first is the windows text size that can be set in the control pannel to Smaller (100%), Medium (125%), or Larger (150%).   I want to force the text size used in my program to be the Smaller text size as it wrecks my GUI to have larger text sizes.    Secondly, some languages use the comma "," instead of the period ".".  This wrecks mathematical calculations.  Is there a way to force my program to always  run in English?  


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

Visual Studio 2017 RC used in a company

$
0
0

As you know, the RC for Visual Studio 2017 is out for some time.

VS 2017 RC

But I have trouble finding some answers to some questions I have. I work for a big company, here in Romania as a programmer. And my job is to code all kind of internal tools,used only here in the company in .NET, Visual Basic.

Right now I have VS 2010 Professional. And because I want to use the best of the Visual Studio, I was wondering if I can use this RC build. So:

  1. I talked to people from my company responsible with licensing and software acquirement. But they don't know about this situation with the RC build... and they are not even interested to find details.
  2. Then I went to Microsoft Romania. They haven't heard that a new VS edition was launched. They gave me a number to call, in Germany.
  3. I called Microsoft Germany, but I talked with an Indian that was telling me to buy the 2017 edition, and I was telling him that this is not final so it doesn't have a price.

 I am asking some questions. Maybe some of you faced this problem before:

  1. Can I use this version of RC at my company? What happens when this edition will be final? Do I have to buy the final one , or I can stay with the RC build (and with all the bugs that comes with)? 
    1. If not, can I use another version, freely, but newer than 2010?
    2. Do I need a commercial license for the internal tools I use? I don't sell the code to anybody, it is used only internally. Do I still need a commercial license?

    The company has <1 M dollars profit and almost 100 PC's. But the software division is new (1 year old) and we are 4 programmers

Thank you!


Stop Visual Studio 2013 from changing the file encoding?

$
0
0

Hello,

I use Visual Studio to edit python scripts (.py files). When I do this, I prefer to use a particular file encoding. However, my VS seems to set the encoding to UTF-8 all the time. Here's what I am seeing:

  1. Open a file, and check its encoding via "File; Advanced Save Options...". This would show "UTF-8 with signature" is the encoding.
  2. Change the encoding to my preferred one.
  3. An asterisk appears next to the filename in the VS editor tabs, indicating that the file has changed, and needs saving.
  4. Save the file. A warning comes up to say I'm about to change encoding, which might cause problems for file diff. Say OK to this warning.
  5. Close the file. Check the encoding in Notepad++. All is fine.
  6. Reopen the file. Add a trivial change, say, a space.
  7. Save the file again. The warning about changing encoding appears again. Say OK to that too.
  8. Check Advanced Save Options to see that encoding is once again UTF-8. Notepad++ reports encoding is UTF-8 as well.

Does anyone know what settings I can change to avoid this behavior, please? This is driving me crazy!

Thank you very much.

Visual Studio 2017 RC: Anroid NDK Python being flagged as virus

$
0
0

Did anyone else run into this with VS20017 RC where python, part of the android NDK, was being flagged by Mcafee as a virus?

3 files get removed during install as RDN/Generic.hbg trojans

python2.7.exe
python.exe
python2.exe

Can it be the package is actually infected or just false positives? Installer downloaded from MSDN subscription.

Keyboard Stops Working

$
0
0

Under VS 2015, periodically my Logitech wireless keyboard stops working: you can press keys, but nothing shows up on screen. Until after a period of time there's a burst of text displayed (but not all the keys which have been pressed).

This is under Win 10/64 bit, all updates for both Windows and VS 2015 installed.

Needless to say, this is very annoying. 

Has anyone else run into this? And figured out how to solve it?

Write the Unit testing for my Extensible(VS Add-in) Projects

$
0
0

Hi,

Currently I have implemented the Visual Studio Add-in and its works as expected.

I have to implement the unit testing project for my Extension project. Can any one suggested how can I start this ? 

Also I have used some project instance objects inside of this utility. So from unit testing how can I generate and pass the project object ? 

Thanks in advance,


- Abbas K



Visual Studio 2017 RC, No UI option in C++.

$
0
0

Decided to install VS 2017 RC to fix my problem where i can't create a Windows Form in C++ projects, in here there's not even a UI option!

https://gyazo.com/dc88070ef3787b2f2b3e69627fb2cff8

What the hell is going on?


I am planning on switching from Eclipse to Visual Studio. How would I get this simple hello world java code to run.

$
0
0

This is the code

public class Helloworld {

    public static void main(String[] args) {
        // Prints "Hello, World" to the terminal window.
        System.out.println("Hello,j World");
    }

}

On eclipse to test if the code is running, I press the "Run" button.

The closest i have found in Visual studio Code is the debug button which returns the error.Could not find the preLaunchTask 'npm

If i could get a step by step guide on how to get started with running a java hello world code successfully in Visual Studio Community 2017 or Code it would help.

How to use user input in an equation?

$
0
0

Hello!

I'm a beginner software developer and i'm struggling with some "simple" codeing.My exercise was that i asked user to type the distance from 1 to 1200.Then the answer would be substracted from 1200 and i would get the answer.For example if i typed in 500,then the answer would be 700 and the number that was substracted would give me another answer of how many times the journey of Peter is longer or shorter than Mikes.Here's a part of my code,the part that i dont know how to solve.

            

Console.Write("Type the length of Peters journey (1-1200)");

num01 = Convert.ToInt32(Console.ReadLine());  <--- I dont know why i wrote that and if it helps or not.

int num01 = I dont know how to make num01 equal to user input and if i dont know that i wont be able to finish the code.

int num02 = 1200;

int num03 = num02 - num01; (For example if the user answers 500 then 700 = 1200 - 500 and so Peters journey is 500 and Mikes journey is 700.Then i need the program to say how many times is Peters journy shorter or longer than Mikes , depending on the answer of the user).

PS : Sorry for bad english.     

Conversion Error

$
0
0

Hi! I am new into this programming stuff (I am a student in practice at a local company). I received the following task: to convert a software which was originally made in Visual Studio 2005 to Visual Studio 2015 ( it was made with Visual Basic, if it helps). After I opened it with Visual Studio 2015, I encountered the error/warning listed above. I clicked ok to upgrade it autmatically, but it ended up opening Visual Studio unable to fiind any solution. Any idea about what should I do? (Please be as detailed as possible, I am very beginner here and I need as many explanations as possible).

Upgrading from VS2010 getting "fatal error LINK1104"

$
0
0
I've been porting some code over from 2010 to 2015. At various points in different projects I'm getting the "fatal error LINK1104" on .dll's or .lib files. It seems to have no rhyme or reason. Sometimes it on one file, the next time it's on another. I restarted my pc and it compiled great....then next time I compiled, it gave me these errors.   What can be done about this?

Verb001

Incremental linking broken with WHOLEARCHIVE

$
0
0

Hi,

I am using the /WHOLEARCHIVE option when linking a static lib, however with this option changes made to the static lib aren't linked into the final executable unless I rebuild the whole solution. The equivalent option with the GCC toolchain (--whole-archive) works as expected.

John Chapman.

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? 

Xaml Intellisense

$
0
0

Hi all.

I have an issue with Visual Studio 2015 Update 3 support for Xaml Intellisense.

I used to work in Visual Studio 2015 Update 2 and was able to install an extension called "Enable Xaml language for Xamarin.Forms" and it was working perfectly, however in the update 3 I am not able to find this extension anymore. Moreover, I found out that there is another extension "Xamarin.Forms Intellisense" available from MobileEssentials library, but I don't see it in the list of available extensions either...

Is it a problem with VS 2015 Update 3, and is there a workaround? Or I should wait when they make the extensions available for last update?

Thanks in advance.


VS2015 update 3, "new.h" not being found on path

$
0
0

RE: VS2015 update 3, "new.h" not being found on path

Hi,

I just got VS2015 update 3 installed on top of VS2010 w/ sdks, etc. 

I have a large project that is complaining about "new.h" not being found on the path now.

The project has had a VS2010 and V140 set of project settings made.

What gets me, is that this builds fine on other systems with the same setup (VS2015U3 over VS2010).

The VS2015 projects build fine on a virtual machine with just VS2015U3. The VS2010 ones build fine on the box in question. I just can't use the newly installed VS2015 update 3 to compile the vs2015 set but can the vs2010 set. On other computers I can.. so its something evidently wrong with the setup.

What didn't get installed correctly? How do I verify installations to make sure that they are correct? How can I be sure all of our developers have consistent and correct installations?

Thanks

Is Visual Studio Community 2015 only for trial?

$
0
0

Hi,

I recently installed the community edition. But was surprised to see it will expire soon?

Is it so? But from the website, it didn't mention any trial period?

How to extend the trial period?

Thanks.

Phil

Visual Studio Community 2015 free trial expired

$
0
0

I stalled Visual Studio Community 2015 on 10/2, and wasn't aware that I need to register the product.

Today, when I open VS, I got a pop up window saying that the 30 day free trial has expired.

I tried clicking on all options on the pop up window, but got blank windows.  So, nothing works there.

The Help tab is not enable, so I can't register there.

I tried to run RunAsDate utility that I found in the intenet, and that didn't work either.

I uninstalled, and deleted all VS programs, then reinstalled VS, and still got the same pop up saying 30 day free trial expired.

What am I missing?  Is there a work around or am I screwed?

Thanks!

How to add CAT.NET Rules in Visual Studio 2012 Code Analsis ruleset ?

$
0
0
Hi All,

I would like to add CAT.Net rules in Code Analysis ruleset in Visual Studio 2012.
Can i know what steps to follow ?

Thanks,
Kejal

How to open command palette in VS2015?

$
0
0

The command pallete should be opened by key combinations ctrl-shift-p or F1.

In my case ctrl-shift-p does nothing. F1 opens browser window. Are there other ways to open command pallete?

Windows 7 and VS Community 2015

Viewing all 21115 articles
Browse latest View live


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