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

VS2019 Failing to build, no errors

$
0
0

Hello,

I've just migrated to VS2019 from 2015 and I'm rather confused.

It seems the program is not building anything.  I have no build errors, the build path is set to the correct path, but when I run build shouts no errors but doesn't actually create any files.  It creates the directory if I delete the /bin directory, so it clearly knows the correct location.

I've tried this with a C++, C#, and VB.Net application.  The C# and VB.Net all failed, and one of three C++ console applications succeeded, but only after I spent a lot of time dicking around with manually linking dependencies one-by-one.

So... any idea what's up?

At this point I'm probably just going to go back to VS2015, I tried VS19 as I've just setup a new dev environment and thought it would be prudent to try the latest tools.

Using community edition 16.5.1 on Windows 10 10.0.17763.

I have tried re-installing and I have also tried running as admin in case it is permissions error.

Thanks.

Edit: I ran build with "diagnostic" build output as well to see if anything was suppressed, and no nothing is.




How to resolve The import SQL/xxxx matches no exports. Did you miss a module reference?

$
0
0

So, I'm working Visual Studio Community with a Tabular Model project.

I'm trying to design a query using Native SQL query and getting this error only (so far. no syntax errors):

Expression.Error: The import SQL/dscusnoramdatamartsqlsrv02.database.windows.net;dscusnoramdatamartsqldb02 matches no exports. Did you miss a module reference?

For the life of me, I can't figure this out.

If anyone can point me in the right direction, I'd really appreciate it.

FWIW, below is the code from the Advanced Editor.

let
    Source = #"SQL/dscusnoramdatamartsqlsrv02.database.windows.net;dscusnoramdatamartsqldb02",
    MyQuery = 
Value.NativeQuery(
#"SQL/dscusnoramdatamartsqlsrv02.database.windows.net;dscusnoramdatamartsqldb02",
"SELECT VE.fullnm                           AS PERSONFULLNAME, 
       VE.personnum                        AS PERSONNUM, 
       PC.NAME                             AS PAYCODENAME, 
       T.applydtm                          AS APPLYDATE, 
       T.adjapplydtm                       AS ADJAPPLYDTM, 
       Round (T.durationsecsqty / 3600, 2) AS WFCTIMEINHRS, 
       T.homeaccountsw, 
       LA1.laborlev1nm                     AS WFCLABORLEVELNAME1, 
       LA1.laborlev2nm                     AS WFCLABORLEVELNAME2, 
       LA1.laborlev3nm                     AS WFCLABORLEVELNAME3, 
       LA1.laborlev4nm                     AS WFCLABORLEVELNAME4, 
       LA1.laborlev5nm                     AS WFCLABORLEVELNAME5, 
       LA1.laborlev6nm                     AS WFCLABORLEVELNAME6, 
       LA1.laborlev7nm                     AS WFCLABORLEVELNAME7, 
       WE.ppstartdatedtm                   AS PREVPAYPERIODSTART, 
       WE.ppenddatedtm                     AS PREVPAYPERIODEND, 
       WE.cpstartdatedtm                   AS CURRPAYPERIODSTART, 
       WE.cpenddatedtm                     AS CURRPAYPERIODEND, 
       WE.npstartdatedtm                   AS NEXTPAYPERIODSTART, 
       WE.npenddatedtm                     AS NEXTPAYPERIODEND 
FROM   tkcsowner.wfctotal T 
       JOIN tkcsowner.paycode1mmflat M 
         ON ( M.paycodeid = T.paycodeid ) 
       JOIN tkcsowner.jaids WE 
         ON ( WE.employeeid = T.employeeid ) 
       JOIN tkcsowner.person VE 
         ON ( VE.personid = WE.personid ) 
       JOIN tkcsowner.paycode PC 
         ON ( M.grandpaycodeid = PC.paycodeid ) 
       JOIN tkcsowner.laboracct LA1 
         ON ( LA1.laboracctid = T.laboracctid ) 
WHERE  M.effectivedtm <= T.applydtm 
       AND M.expirationdtm > T.applydtm 
       AND PC.type = 'P' 
       AND Substring (LA1.laborlev2nm, 1, 4) = '3493'"
)
in
    MyQuery


In VS 2017, VS 2015 Static Analysis Tools Not Found

$
0
0

Windows 10
Visual Studio 2017

Related: https://gitlab.com/graphviz/graphviz/issues/1481

I'm trying to build Graphviz in Windows. Whoever last worked on the Windows glue is unavailable/unknown, so hopefully this is a straightforward problem.

Adapting the instructions here, I cloned from Git and used this PowerShell script in the repo root:

git submodule update --init
$env:Path = "$pwd\windows\dependencies\graphviz-build-utilities;$env:Path"
& "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\devenv.exe" ".\graphviz.sln"

Upon building, I get a variation of the following error for each project in the solution. Can I get a lead on this problem, please? (Per my system's directory structure, the missing folder is C:\Program Files (x86)\Microsoft Visual Studio 14.0\Team Tools\Static Analysis Tools.)

ErrorMSB4018The "NativeCodeAnalysis" task failed unexpectedly.
Microsoft.VisualStudio.CodeAnalysis.AnalysisResults.AnalysisResultException: CA0001 : An unknown error occurred while running Code Analysis. ---> System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Program Files (x86)\Microsoft Visual Studio 14.0\Team Tools\Static Analysis Tools\Rule Sets\NativeRecommendedRules.ruleset'.
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize)
   at System.Xml.XmlDownloadManager.GetStream(Uri uri, ICredentials credentials, IWebProxy proxy, RequestCachePolicy cachePolicy)
   at System.Xml.XmlUrlResolver.GetEntity(Uri absoluteUri, String role, Type ofObjectToReturn)
   at System.Xml.XmlTextReaderImpl.FinishInitUriString()
   at System.Xml.XmlTextReaderImpl..ctor(String uriStr, XmlReaderSettings settings, XmlParserContext context, XmlResolver uriResolver)
   at System.Xml.XmlReaderSettings.CreateReader(String inputUri, XmlParserContext inputContext)
   at System.Xml.XmlReader.Create(String inputUri, XmlReaderSettings settings, XmlParserContext inputContext)
   at Microsoft.VisualStudio.CodeAnalysis.RuleSets.RuleSetXmlProcessor.ReadFromFile(String filePath)
   at Microsoft.VisualStudio.CodeAnalysis.RuleSets.RuleSet.LoadFromFile(String filePath, IEnumerable`1 ruleProviders)
   at Microsoft.Build.Tasks.NativeCodeAnalysis.LoadRuleSet(String ruleSetFile)
   at Microsoft.Build.Tasks.NativeCodeAnalysis.Execute()
   --- End of inner exception stack trace ---
   at Microsoft.Build.Tasks.NativeCodeAnalysis.Execute()
   at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
   at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__26.MoveNext()exprC:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\Microsoft\VisualStudio\v15.0\CodeAnalysis\Microsoft.CodeAnalysis.targets407



Visual studio 2019 Typescript

$
0
0

so when i save a *.ts file with no tsconfig.json file in vs2019 compiles it to *.js in the root directory. I have added a ./src and ./dist directory and have edited the "outDir": "./dist", "rootDir":"./src", 

and added a tsconfig.json file. Now, it doesn't compile on save anymore. I can run tsc in the root for it to compile successfully and place files accordingly. Are there any settings that allow the IDE to auto compile on save following the tsconfig.json file rules. i basically want a src and dist directory and when i save the src files the dist dir, javascript files are created in the src without webpack etc.

The auto compile worked fine until i added the tsconfig.json file.  - as i say, if i run the tsc command it works as expected. i want the ide to obey the tsconfig.json file and do it automatically on save, but to the correct directories listed in tsconfig. what am i missing pls? any ideas? thanks





The project file could not be loaded

$
0
0

Hi,

Why I am getting this error:


C:\Users\jrahm\Source\Repos\SyncfusionCountry\SyncfusionCountry\SyncfusionCountry.UWP\SyncfusionCountry.UWP.csproj : error  : The project file could not be loaded. Root element is missing.  C:\Users\jrahm\Source\Repos\SyncfusionCountry\SyncfusionCountry\SyncfusionCountry.UWP\SyncfusionCountry.UWP.csproj

C:\Users\jrahm\Source\Repos\SyncfusionCountry\SyncfusionCountry\SyncfusionCountry.Android\SyncfusionCountry.Android.csproj : error  : The project file could not be loaded. Root element is missing.  C:\Users\jrahm\Source\Repos\SyncfusionCountry\SyncfusionCountry\SyncfusionCountry.Android\SyncfusionCountry.Android.csproj

C:\Users\jrahm\Source\Repos\SyncfusionCountry\SyncfusionCountry\SyncfusionCountry.iOS\SyncfusionCountry.iOS.csproj : error  : The project file could not be loaded. Root element is missing.  C:\Users\jrahm\Source\Repos\SyncfusionCountry\SyncfusionCountry\SyncfusionCountry.iOS\SyncfusionCountry.iOS.csproj

C:\Users\jrahm\Source\Repos\SyncfusionCountry\SyncfusionCountry\SyncfusionCountry.Android\SyncfusionCountry.Android.csproj : error  : The project file could not be loaded. Root element is missing.  C:\Users\jrahm\Source\Repos\SyncfusionCountry\SyncfusionCountry\SyncfusionCountry.Android\SyncfusionCountry.Android.csproj

This is the second time i get the same error with the a different project

Kindly help..

Thanks,

Jassim

'Re-draw' the Windows Forms Designer

$
0
0

Hello everyone,

I am currently making a Windows Forms application, and the main part of my application is a TabControl. I notice that sometimes when I go back and forward between tabs throughout my project (Not on the tab control itself), it appears that randomly all my TabPage controls dissappear. The tab headers are still there on the tab control, but the actual TabPage control itself is gone. I solve this issue by closing the designer and re-opening it from my Solution Explorer. I was wondering if there is any option to 'Re-draw' the page that I can bind a key to so it speeds the process up. If not maybe an idea for a VS update.

Thanks, Will.

Connect to ACE and JET simultaneously

$
0
0

I have an app using ACE db in 32 bit mode.

Because  I have so much legacy stuff, I have not converted to 64bit. I need to get some data out of a legacy Jet Database.

Can the two providers exist on the same PC?

Unable to Sign in in Visual Studio – Completely Blank Sign In Page

$
0
0

Hello there

I am unable to sign into my Microsoft account from within Visual Studio 2019 Preview.

I first noticed this when attempting to clone from an Azure Devops repository. However, I get the same error in all circumstances, for example when clicking on “Add an Account” from the Accounts Settings form.

I just get a large completely blank form entitled “Sign into your account”.

I am using Windows 10 on a laptop.

Any help greatly appreciated.

Geoff Olding

Visual Studio 2019 and C++: Unwanted indenting on comments or enums

$
0
0

I'm using VS version 16.5.2 and developing using C++.

When I type Enter in Visual Studio editor it indents in two situations when I don't want it to:

  • When typing a // comment and then hitting Enter for a new line
  • When adding enum items and hitting Enter for a new line

The only way I've found to stop this in the Options is to change the Tabs->Indent from Smart to Block. But unfortunately this also disables other options that I do want, such as formatting a section when I type "}" or ";". (Why that is related to smart tab indenting I don't know.)

Is there a way to ONLY stop these unwanted indentations without affect anything else?

If not, I'll do a feature request request.

Jim

Can't create or run Azure Functions projects

$
0
0
I've recently changed my username on my machine, I already expected some issues with that. But I can't run or create any Azure Functions applications anymore. 

When I try to Run an application, I receive the following error: https://i.imgur.com/hC6wGbq.png
When I try to Create an application, there are no templates for functions (https://i.imgur.com/WcRfaoH.png) and when I click 'Create', I receive the following error: https://i.imgur.com/nWzfwn6.png

I've already tried to uninstall Visual Studio 2019 twice, I even ran the recommended InstallCleanup.exe and I can run and debug Azure Functions on Visual Studio code, so I don't really know what's going on. I tried for a place to update my azure functions tools directory, but I couldn't find it anywhere.

Dataset Not showing in solution explorer

$
0
0

Hi All

I Have Created a dataset for my project in Visual Studio 2019 V16.5.1.

I was looking for it so I could edit it and it wasn't visabale in the Solution Explorer, I rebuilt VS but stll not able to see it.

I know it existes because it is binded to a datagridview.

So I Created a new Data set and as soon as I added to a new datagrid for testing I received the error that the dataset is not defined.

Can Some one help me resolve this isue without having to start the project from scratch.

XSD File build action feature not appear

$
0
0

I am using Visual Studio 2019 community edition. I want to embed XSD file as a resource and I tried to change the build action of the XSD file into resource. But in my IDE that feature is not appear. This is how its looks like when open file properties. Is this issue with my IDE or is it not enabled in Community edition. How can I fix this issue.

VS2019 Error after update

$
0
0

Hi All,

  My VS2019 Community prompt up error every times i launch the VS2019.

  The error is :

  The "Settings Package" package did not load correctly


An unhandled exception of type system.net.webException occured in microsoft.sharepoint.client.dll

Report1.rdlc

$
0
0

Hi

As what to define "ReportViewer1" ? so that following statements works in vb.net reports

me.ReportViewer1.LocalReport.ReportPath = reportpath + "report1.rdlc"

Thanks

Bansor


Can't use LocBaml with WPF .NetCore 3.1 project in Visual Studio 2019 Preview

$
0
0

I have a very simple WPF project that I'm trying to lcoalize. 

I've run "MSBuild" to add the UID's (msbuild /t:updateid WPFLocalizationWithXAML.csproj).  This worked ok and added the UID's. 

My problem is that I can't parse "WPFLocalizationWithXAML.resources.dll" with "LocBaml.exe".  I've copied "LocBaml.exe" and "WPFLocalizationWithXAML.exe" into the "\en-us" so that it sits with "WPFLocalizationWithXAML.resources.dll".  I then ran the following command (locbaml.exe /parse WPFLocalizationWithXAML.resources.dll /out:trans.csv) but this always results in the following error and a trans.cvs file wth garbage in it:

Microsoft (R) Baml Localization Utility 1.0.0.0

Could not load file or assembly 'System.Runtime, Version=4.2.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified

Any idea whats causing this?

Thanks in advance.

H

EntityFramework 6.4 localization?

$
0
0

Hello,

I have always installed EntityFramework package together with spanish resources, however, when seeing nuget packages, I can only see that spanish resources where available only until EF 6.2 version. EF 6.4 does not have resource packages anymore. Are they included in the core or how can I do to have localized strings?

Regards

Jaime


VStudio 19 Crashes on Startup, Please welp!

$
0
0
Everytime I try to launch I'm getting this;

Problem signature:
  Problem Event Name:    APPCRASH
  Application Name:    devenv.exe
  Application Version:    16.5.29926.136
  Application Timestamp:    5e7d1d97
  Fault Module Name:    KERNELBASE.dll
  Fault Module Version:    6.1.7601.23418
  Fault Module Timestamp:    5708a7e4
  Exception Code:    c06d007e
  Exception Offset:    0000c54f
  OS Version:    6.1.7601.2.1.0.256.1
  Locale ID:    1033
  Additional Information 1:    0a9e
  Additional Information 2:    0a9e372d3b4ad19135b953a78882e789
  Additional Information 3:    0a9e
  Additional Information 4:    0a9e372d3b4ad19135b953a78882e789

Read our privacy statement online:
  http://go.microsoft.com/fwlink/?linkid=104288&clcid=0x0409

If the online privacy statement is not available, please read our privacy statement offline:
  C:\Windows\system32\en-US\erofflps.txt

Tried so far:

1. Rebooting PC.
2. Repair via VS installer.
3. Uninstalled and Installed several times.
4. Update (current update).
5. And some full load of nonsense fixes as I tried to troubleshoot (Reversed everything ofc...)

Really, I'm here as last resort!
Anyhelp will be highly appreciated.

Peace <3

Visual Studio Remove ToolBar

$
0
0

I Create a multi-documents poject in Visual Studio MFC.

I want to remove un-use ToolBar. But i cannot success.

DataGrid.ItemsSource in DataGrid inside another DataGrid's RowDetails XAML causing Visual Studio 2019 to crash and exit

$
0
0

That might sound a bit complicated, but I have a datagrid inside the rowdetails of another datagrid in a WPF window.  I recently installed version 16.5.3 of VS2019.  The WPF window builds and executes successfully, but if I try to edit the .xaml file, the VS2019 Designer fails to load the file and VS2019 closes down without any error message.  The same thing does not happen using VS2017, and I have been using, and editing, this XAML code previously for some time.

I have managed to isolate the problem to the following assignment of the rowdetails' datagrid's ItemsSource - this is what is causing VS2019 to crash:

<DataGrid.ItemsSource><MultiBinding Converter="{StaticResource ValueConverterGetLast30Days}"><Binding Path="Transactions"/><Binding  Path="BankAccountID"/></MultiBinding></DataGrid.ItemsSource>

As you can see, it calls a ValueConverter which creates a list of the items to be inserted into the rowdetails datagrid.

I have managed to work around the problem by creating the datagrid's ItemsSource in code and adding the data to the datagrid on the LoadingRowDetails event being triggered.

But I am mystified as to why trying to load a WPF window containing this XAML code snippet into the VS2019 Designer (I get the same crash with Blend, incidentally) should cause VS2019 to crash, but not in VS2017 and also while still allowing the Solution to build and execute as expected, and thought I should publicise the problem.


Mike Whalley

Viewing all 21115 articles
Browse latest View live


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