Quantcast
Channel: MSBuild forum
Viewing all 2763 articles
Browse latest View live

Calling Same Target based on different values of a Property

$
0
0

I have a Visual Studio 2019 solution with multiple projects. I have a Directory.Build.props file which has a property, like below.

<MyProp Condition="'$(MyProp)' == ' ' ">DefaultValue</MyProp>



I have a .csproj which has a target like below. The target is the same, but conditions are different. 

  
<Target Name="MyTarget" AfterTargets="Build" Condition="'$(MyProp)' != 'SomeValue'"><Message Importance="High" Text="Prop value is Not SomeValue..."></Message></Target>

<Target Name="MyTarget" AfterTargets="Build" Condition="'$(MyProp)' == 'SomeValue'"><Message Importance="High" Text="Prop value is SomeValue..."></Message></Target>


I want to call the above target based on the condition which is satisfied, from my msbuild command line. 

msbuild /t:restore,clean,build /p:MyProp="SomeValue" - This calls the second MyTarget since the condition is satisfied.

msbuild /t:restore,clean,build /p:MyProp="SomeOtherValue" - This doesn't call any target, although I expect it to call the first MyTarget since MyProp is not equal to SomeValue.

Any help would be appreciated.


Ven



Visual Studio Issues

$
0
0

I am new to visual studio and windows programming. I have watched a bunch of videos and read quite a bit online. I downloaded Visual Studio Community Edition with almost all the bells and whistles. I created a project with a main .cpp and .h file. I am trying to create my first windows program for my wife's side business. I followed all the instructions but I am getting the following errors:

WarningMSB3243No way to resolve conflict between "System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" and "System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089". Choosing "System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" arbitrarily.FirstAttemptC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets2106

I am getting over 1000 warnings. I am at a loss. This is my .cpp file:

#include "Mainform.h"

using namespace System;
using namespace System::Windows::Forms;

[STAThreadAttribute]
void Main(array<String^>^ args) {
    Application::EnableVisualStyles();
    Application::SetCompatibleTextRenderingDefault(false);
    //WinformCDemo is your project name
    FirstAttempt::Mainform form;
    Application::Run(% form);
}

And here is my .h file

#pragma once

namespace FirstAttempt {

using namespace System;
using namespace System::ComponentModel;
using namespace System::Collections;
using namespace System::Windows::Forms;
using namespace System::Data;
using namespace System::Drawing;

/// <summary>
/// Summary for Mainform
/// </summary>
public ref class Mainform : public System::Windows::Forms::Form
{
public:
Mainform(void)
{
InitializeComponent();
//
//TODO: Add the constructor code here
//
}

protected:
/// <summary>
/// Clean up any resources being used.
/// </summary>
~Mainform()
{
if (components)
{
delete components;
}
}

private:
/// <summary>
/// Required designer variable.
/// </summary>
System::ComponentModel::Container ^components;

#pragma region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
void InitializeComponent(void)
{
this->components = gcnew System::ComponentModel::Container();
this->Size = System::Drawing::Size(300,300);
this->Text = L"Mainform";
this->Padding = System::Windows::Forms::Padding(0);
this->AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font;
}
#pragma endregion
};
}

Both files say " No issues found"

Configuration not being passed onto project references

$
0
0

Hi, I'm struggling with my build which consists of multiple solutions and projects.

The problem I'm experiencing is when I build a solution that has a ProjectReference to a projectoutside of the solution, the current $(Configuration) doesn't appear to be passed through, which results in a DEBUG build happening.

In more detail:

SolutionA:
  Project1: References Project2 via a "Project Reference"

Project2 does not exist in Solution A.

When I build SolutionA.sln with /p:configuration:"release", Project1 builds as a release build, but it triggers a build for project2.  This builds with debug configuration.

Testing it out a bit more it seems that when testing the $(Configuration) value in the proj file, it's blank.  It doesn't seem to pass through to project references.

There are a few workarounds, but that requires manual tinkering with the project file.  Due the hundreds of projects I'm dealing with, I was hoping there was a solution to this that works globally.

I thought maybe that this could be resolved by passing in /p:CustomAfterMicrosoftCommonTargets with a file:

<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"><ItemDefinitionGroup><PropertyGroup><Configuration>Release</Configuration></PropertyGroup></ItemDefinitionGroup></Project>

But this doesn't seem to have any impact.

Is what I'm trying to achieve possible without manually editing all the project files, or maintaining a super solution file that has everything in it?  Both routes that I'm loathe to take.

Thanks.


Issues with `msdeploy` (An error occurred when the request was processed on the remote computer.)

$
0
0

Hi,

I have tried the following to deploy a .NET Framework 4.5 application to a remote windows server using Jenkins and msdeploy:

def deployDev(folder, virtualDirectory)
{
bat "\"C:\\Program Files\\IIS\\Microsoft Web Deploy V3\\msdeploy.exe\" -verb:sync -allowUntrusted -source:package=\"${WORKSPACE}\\DIST\\Package\\${virtualDirectory}.zip\" -dest:auto=\"Default%%20Web%%20Site/${virtualDirectory}\",computerName=\"https://XX-XXX-XX:8172/msdeploy.axd?site=Default%%20Web%%20Site\" -enablerule:AppOffline -setParam:name=\"IIS Web Application Name\",value=\"Default Web Site\\${virtualDirectory}\" -verbose -disableLink:AppPoolExtension -disableLink:ContentExtension -disableLink:CertificateExtension"
}

While deploying I'm getting the following error:

14:29:53  Verbose: Source createApp (E:\Jenkins\slaves\AsoModernisation\workspace\ASO2_master\Aso2\obj\Debug\Package\PackageTmp) does not match destination (Default Web Site\Aso2) differing in attributes (isDest['False','True']). Update pending.
14:29:53  Verbose: Update operation on **createApp** (E:\Jenkins\slaves\AsoModernisation\workspace\ASO2_master\Aso2\obj\Debug\Package\PackageTmp) skipped because of rule ApplicationExistsRule.
14:29:53  Verbose: Delete operation on filePath (Default Web Site\Aso2\App_Offline.htm) skipped because of rule AppOffline.
14:29:53  Verbose: Source **setAcl** (E:\Jenkins\slaves\AsoModernisation\workspace\ASO2_master\Aso2\obj\Debug\Package\PackageTmp) does not match destination (Default Web Site\Aso2) differing in attributes (isDest['False','True'],setAclUser,setAclAccess). Update pending.
14:29:53  Info: Adding ACLs for path (Default Web Site\Aso2)
14:29:53  Verbose: Parameter entry 'IIS Web Application Name/1' is applicable to 'iisApp/E:\Jenkins\slaves\AsoModernisation\workspace\ASO2_master\Aso2\obj\Debug\Package\PackageTmp' because of its scope.
14:29:53  Verbose: Parameter entry 'IIS Web Application Name/2' is applicable to 'setAcl/E:\Jenkins\slaves\AsoModernisation\workspace\ASO2_master\Aso2\obj\Debug\Package\PackageTmp' because of its scope.
14:29:53  Verbose: Parameter entry 'IIS Web Application Name/2' is applicable to 'setAcl/E:\Jenkins\slaves\AsoModernisation\workspace\ASO2_master\Aso2\obj\Debug\Package\PackageTmp' because of its scope.
14:29:53  Verbose: Parameter entry 'Add write permission to App_Data Folder/1' is applicable to 'setAcl/E:\Jenkins\slaves\AsoModernisation\workspace\ASO2_master\Aso2\obj\Debug\Package\PackageTmp\App_Data' because of its scope.
14:29:53  Error: (21/02/2020 14:29:53) An error occurred when the request was processed on the remote computer.
14:29:53  Error: The server experienced an issue processing the request. Contact the server administrator for more information.
14:29:53  Error count: 1.

I've opened port 8172, checked user permissions, tried reinstalling msdeploy (v3.6), added IIS Manager permissions, created pools and virtual directories under the default website.

Would anybody have a suggestion on what's wrong with this? Anything with createApp or setAcl that would cause the issue?




Converting from Windows to Android.

$
0
0

Dear Helper(s),

I succeeded in creating an empty Andoid application by Visual Studio Community. I had only one reason to achieve this: I want to try to convert my successfully build executable to Android. This executable is an attempt to emulate Mathematica in Windows 10  for 12-18 aged students of mathematics. Their only difference being my program showing a lot of intermediate steps. So far it might seem impossible because of the differences between Android and Windows. Mr. Wolfram of Mathematica himself created "Wolfram Alfa". Considering mr. Wolfram by far my superior in every aspect I can only try to achieve an alternative. I started with Android but was stopped there because all my code is in C++. And that is why I tried Visual Studio Community.  After succeeding my new build  with its name Al ('A' for Android and 'l' for my last program) I searched for something like "Al.exe" or "Al.app" but found none: only "Al.dll"! You may believe me when stating I am extremely motivated to continue! So I am very eager to continue but have to remain critical as well because I need Visual Studio to create an Android application running on a tablet. So I seem to have to suppose Visual Studio created a Windows dll file "Al.dll" that is certain never to run on an Android tablet! I even suppose it might not run without Visual Studio Community! I still don't have yet any tablet but one of my friends is prepared to borrow me his tablet while trying to achieve my target in the long term! And I have to admit some boundary conditions:
c1. My code constituting of over 1640 functions is written in C++. I will not try to start rewriting these functions in Java or any Java-like language like Kotlin.
c2. A Windows based dll file will not be sufficient because I will need an Android application running under Android!
c3. I developed my programs without MFC!
So I will have also a few questions:
1. I actually wonder if this might be possible in Visual Studio Community!
2. All my executable's are developed with both uttermost care and completeness over a very long period! I will remain extremely cautious about the Android code I will have to develop! So I wonder - for example - if there might exist an alternative for Microsoft's HTML Help Workshop I used to develop my chm help file: probably not! I can't know in advance how many more problems of that kind I might encounter! Would my attempt be in vain?
3. In the long term I will have to copy an Android application to my tablet! Will that be possible in Visual Studio! I am left fearing that this might only be possible by using Android Studio! And possibly even that impossible because Android Studio claiming Java/Kotlin!
4. Suppose at least one of your answers to my questions 1-3 would be "No" or "In vain" would you in that case recommend another possibility to achieve my target!
I am Ton Epskamp at a.epskamp@ziggo.nl.
With all regards from

Ton Epskamp.

How to register a legacy typelib (.tlb) on Windows 10?

$
0
0

Hi all,

I have Visual Studio 2015 running on Windows 10 and need to register a legacy type lib (.tlb). From the posts I've found, regtlibv12.exe is the tool for this. However, I can't find it under C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\ or anywhere else for that matter. Does anyone know how to register .tlb if regtlibv12.exe doesn't exist?

I've tried regasm /tlb:path but I get errors saying the path cannot be read.

Any help would be much appreciated.


How to create a solution for Azure Data Factory

$
0
0

Hello,

I am planning to create a solution in visual studio for Azure Data Factory but when i try to create a solution i do not see a template for azure data factory.

Please suggest me the steps to create a solution for azure data factory.

Thanks

Publish Failed to sign msix

$
0
0

Our solution builds without error.  When I go to create the setup package I get an error "Failed to sign 'D:\dev\MeyerMusic\MeyerTablet\TabletDistribution\bin\AnyCPU\Release\MeyerMusicTabletSetup_2.6.6.0_AnyCPU.msix'."

We are distributing the application as a Microsoft Store under the existing app name.


Last week on this same development computer I built version 2.6.5 as well as many packages before that.  

The error number is blank or missing.  I do not have a reason for the failure.  I only see one fact in the error message and that points to line 4574 in the file: C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Microsoft\VisualStudio\v16.0\AppxPackage\Microsoft.AppXPackage.Targets

That line is this:

    <SignAppxPackage Condition="'$(AppxPackageSigningEnabled)' == 'true'"
                     AppxPackageToSign="$(AppxMainPackageOutput)"
                     CertificateThumbprint="$(PackageCertificateThumbprint)"
                     CertificateFile="$(PackageCertificateKeyFile)"
                     CertificatePassword="$(PackageCertificatePassword)"
                     HashAlgorithmId="$(AppxHashAlgorithmId)"
                     EnableSigningChecks="$(EnableSigningChecks)"
                     SignAppxPackageExeFullPath="$(SignAppxPackageExeFullPath)"
                     TempCertificateFilePath="$(TempCertificateFilePath)"
                     VsTelemetrySession="$(VsTelemetrySession)"
                     SigningTimestampServerUrl="$(AppxPackageSigningTimestampServerUrl)"
                     SigningTimestampDigestAlgorithm="$(AppxPackageSigningTimestampDigestAlgorithm)"
                         />

Troubleshooting steps:

1.  Attempted to build a side load package.  Results in same error

2.  Successfully built a side load package that was not signed

3.  I have restarted Visual Studio

4.  I have rebooted the machine

5.  I have deleted OBJ, BIN for the entire solution

6.  I have looked for errors in the event log but none have been found so far.


Rodney Workman


Build Tools 2017 cant find Cpp Unit tests using recommended paths

$
0
0

After installing the standalone Visual Studio 2017 Build tools (v15.9.20) including the "Test Tools Core features-build tools" component, and trying to build a project containing a simple set of built in Unit tests for c++ (https://docs.microsoft.com/en-us/visualstudio/test/writing-unit-tests-for-c-cpp?view=vs-2017), it seems that the default directories are such that it cannot find the unit test headers during compilation.

Specifically, I created the exact example unit test project from: https://docs.microsoft.com/en-us/visualstudio/test/microsoft-visualstudio-testtools-cppunittestframework-api-reference?view=vs-2017#example

When I run this code on a computer with the full version of Visual Studio 2017 installed and build the solution (UnitTest1.sln) from either IDE or a Dev command prompt for VS2017 using the command "msbuild UnitTest.sln" everything works fine.

However, from the computer which only has the Build Tools installed (not the full Visual Studio IDE), if I do the exact same thing and open a Developer command prompt for VS2017 and use the command "msbuild UnitTest.sln", I get the error C1083: Cannot open include file: 'CppUnitTest.h': No such file or directory... error message.

I can see the unit test headers installed at "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\UnitTest" on this computer, but the recommended include directories for the projects are "$(VCInstallDir)UnitTest\include;"
or $(VCInstallDir)Auxiliary\VS\UnitTest\include and neither of those work out of the box when using the standone MSBuild build tools for 2017

The end goal is to use this on a build server where only the Build Tools are installed, but we would need the tests to be able to run without change on the developer machines and the build server.Shouldnt this just work? Or is there something I am missing or going wrong?

Webrtc media server with chromium build issue in Visual studio 2019

$
0
0
Hello All,

I'm actually facing a problem while building my webrtc-media-server using Visual Studio 2019. What's happening is I'm using chromium as an additional dependency in my media-server and I know that chromium doesn't support MSVC build. For that I'm using is_clang=true so that the msvc compiler is not selected and it also builds successfully using ninja. But when I use my media-server with chromium as mentioned earlier I'm getting this error.

 Error C1189 #error: "Only clang-cl is supported on Windows, see https://crbug.com/988071"   Server D:\projects\chromium-src\src\base\compiler_specific.h   13 


The code responsible for this in chromium is this in bae/compiler_specific.h

    #if defined(COMPILER_MSVC)
    #if !defined(__clang__)
    #error "Only clang-cl is supported on Windows, see https://crbug.com/988071"
    #endif
    ....
    ....
    ....

I'm not able to get why is VisualStudio not detecting clang. I even did install LLVM 9.0 from its official source but was of no help.

 Please correct my steps if I'm wrong and suggest me anything by which I can run my media-server  



vishal

MSBuild.exe build solution but change the /arch

$
0
0

I have a ".sln" file that I want to be able to build, it outputs a ".dll", but instead of having to go through the Visual Studio Code Menu I was hoping to build it for "SSE2", "AVX", "AVX2" and "IA32", with 4 commands or something along the lines in a ".bat" file.

So far I was able to do this:

"C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\MSBuild.exe" -ds Osiris.sln /t:Osiris /p:Configuration="Release" /p:Platform="x86 

And this simply builds the current ".sln" with the saved configuration, what I was hoping to do was change the "/ARCH:" function on each run an output these in this format:

"{proj name}_-_{instruction_set}.dll

Thanks very much in advance,

James

If I am approaching this the completely and totally wrong way please feel free to correct me :)))))

Builds are failing after position take over

$
0
0

I recently took over the position of an former staff member. I was instructed to use my own MS account, not that of the former colleague. This may or may not be significant but ever since yesterday morning when this change took effect, none of the builds I'm kicking off OR that my teams members are initiating on check ins are completing successfully. We're getting partial completions. Thoughts?

Exception Message: TF270015: 'MSBuild.exe' returned an unexpected exit code. Expected '0'; actual '1'. See the build logs for more details. (type UnexpectedExitCodeException) Exception Stack Trace: at System.Activities.Statements.Throw.Execute(CodeActivityContext context) at System.Activities.CodeActivity.InternalExecute(ActivityInstance instance, ActivityExecutor executor, BookmarkManager bookmarkManager) at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager, Location resultLocation)

Built C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\TeamBuild\Microsoft.TeamFoundation.Build.targets for default targets.

C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\TeamBuild\Microsoft.TeamFoundation.Build.targets (1565): TF270002: An error occurred copying files from 'e:\erp-1\87258\324\bin' to '$/integraERP/Drops/2.14.12.1/integraERP/2.14.12.1 integraERP_20200317.2'. Details: The path e:\erp-1\87258\324\bin is already mapped in workspace VersionControlDropWorkspace_fa00f803-2895-4782-bf18-19f1268718e8;b0e720ac-5939-4f34-8d84-497ae0ef6171.

C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\TeamBuild\Microsoft.TeamFoundation.Build.targets (1565): The "CopyDirectoryTask" task failed unexpectedly. Microsoft.TeamFoundation.Build.Workflow.Activities.CopyDirectoryException: TF270002: An error occurred copying files from 'e:\erp-1\87258\324\bin' to '$/integraERP/Drops/2.14.12.1/integraERP/2.14.12.1 integraERP_20200317.2'. Details: The path e:\erp-1\87258\324\bin is already mapped in workspace VersionControlDropWorkspace_fa00f803-2895-4782-bf18-19f1268718e8;b0e720ac-5939-4f34-8d84-497ae0ef6171. ---> Microsoft.TeamFoundation.VersionControl.Client.MappingConflictException: The path e:\erp-1\87258\324\bin is already mapped in workspace VersionControlDropWorkspace_fa00f803-2895-4782-bf18-19f1268718e8;b0e720ac-5939-4f34-8d84-497ae0ef6171. at Microsoft.TeamFoundation.VersionControl.Client.InternalCache.CheckForMappingConflicts(WorkspaceInfo workspaceToCheck, WorkspaceInfo workspaceToIgnore) at Microsoft.TeamFoundation.VersionControl.Client.Client.CreateWorkspace(CreateWorkspaceParameters cwp) at Microsoft.TeamFoundation.Build.Client.BuildClientUtil.CreateWorkspace(VersionControlServer versionControl, String name, IEnumerable1 folders, String comment, IEnumerable1 wsSecurity) at Microsoft.TeamFoundation.Build.Workflow.Activities.VersionControlDropProvider.GetWorkspace(String serverPath, String localPath) at Microsoft.TeamFoundation.Build.Workflow.Activities.VersionControlDropProvider.CopyItems(String sourceDirectory, String targetDirectory, String[] items, Boolean copySource) --- End of inner exception stack trace --- at System.Activities.WorkflowApplication.Invoke(Activity activity, IDictionary2 inputs, WorkflowInstanceExtensionManager extensions, TimeSpan timeout) at System.Activities.WorkflowInvoker.Invoke(Activity workflow, IDictionary2 inputs, TimeSpan timeout, WorkflowInstanceExtensionManager extensions) at Microsoft.TeamFoundation.Build.Tasks.WorkflowTask.ExecuteInternal() at Microsoft.TeamFoundation.Build.Tasks.Task.Execute() at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute() at Microsoft.Build.BackEnd.TaskBuilder.d__20.MoveNext()

Target Batching in VS2019 not properly checking timestamp of input files

$
0
0

I am using protobuf's protoc to generate .h and .cc files from .proto files before the ClCompile task. I am using target batching to run protoc on each .proto file (protoc in Windows does not allow wildcards to do N files at a time). I have it working properly in VS 2015, where it will properly regenerate and rebuild the files when the .proto input files change. However with the same MSBuild code in VS2019, changes to the .proto files do not regenerate the outputs files and trigger a build. It will only generate the .h and .cc files if the outputs are missing. Is this a potential bug in VS2019 or was the syntax changed between versions?

Below is the BuildRule_proto.targets that we add to the .vcxproj file

<?xml version="1.0" encoding="utf-8"?><Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"><ItemGroup><ProtoFiles Include="$(MSBuildProjectDirectory)\**\*.proto" /></ItemGroup><Target Name="CompileProtoc" BeforeTargets="ClCompile" Inputs="@(ProtoFiles)" Outputs="@(ProtoFiles->'$(ProjectGenDir)%(Filename).pb.h');@(ProtoFiles->'$(ProjectGenDir)%(Filename).pb.cc')"><Message Text="Compiling: %(ProtoFiles.FullPath) using protoc" /><Exec Command="$(ProtoBufCompilerDir)\protoc --proto_path=%(ProtoFiles.RootDir)%(ProtoFiles.Directory) --proto_path=$(ProtoBufIncludeDir) --cpp_out=$(ProjectGenDir) %(ProtoFiles.FullPath)"/></Target></Project>

I have also tried exploding out the ProtoFiles as in:

<ItemGroup><ProtoFiles Include="$(MSBuildProjectDirectory)\abc.proto" /><ProtoFiles Include="$(MSBuildProjectDirectory)\def.proto" /></ItemGroup>

Xamarin ....Emulator Not Running

$
0
0
hiI am new at xamarin. i am using VS 2019 , i am facing a problem but not regarding to your tutorial... When I Create a project my emulator is not running...even I create multiple emulators but still its not working...I am much worried about it . please guid me in a right way...waitin for your reply ...thanks....Error is shown belowStarting emulator pixel_2_marshmallow_6_0_-_api_23 ...emulator: ERROR: It seems too many emulator instances are running on this machine. Aborting.Emulator pixel_2_marshmallow_6_0_-_api_23 was stopped.Runtime checks completedBuild has been canceled.

The command "rmdir /S /Q c:\xxx\AI\AzureCIP\xxxx\bin mklink /D c:\xxx\AI\AzureCIP\xxxx\bin exited with code 1"

$
0
0
Has anyone encountered this error while trying to run a build on vs code 2017? i just pulled the latest code and this is what i got, stuck on failed builds :(

my projects don't run

$
0
0

hi

why my project doesn't run?

I uninstalled my vs2012 and installed vs2019 but I still have this problem

even I open from main way that it saved, it doesn't work

the error is:

Severity Code Description Project File Line Suppression State
Error  Unable to create a manifest resource name for "..\..\..\..\..\Desktop\school\1 paygah dade\podman 3\form\calculator\calculator.resx". Could not find a part of the path 'C:\Users\Dell\Desktop\1 paygah dade\Desktop\school\1 paygah dade\podman 3\form\calculator\calculator.cs'. calculator   

Understanding the assembly output path in a mixed .net framework, asp.net core, .net standard solution

$
0
0

Given is a mixed .net framework, asp.net core, .net standard solution. Why are the assemblies of latter stored in a netcoreapp3.1, netstandard2.0 directory? Is it problematic to configure all 3 in 1 directory? For instance with:

<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>


Understanding nuget/dotnet restore in a mixed .net framework, asp.net core, .net standard solution

$
0
0

I've introduced a first asp.net core, .net standard project to our solution which was .net framework 4.7.2 only before.

Illustration of the project sutructure:

- many .net 4.7.2 framework projects

- single asp.net core web app

- single .net standard class lib which acts as interface between the asp.net core web app and net framework classlibs

In visual studio 2019 the solution build fine. Later I struggled with the compile on jenkins and the publishing.  On jenkins the solution build only when we did this before:

nuget.exe restore a.sln -Source http://a:4080/nuget -PackagesDirectory .\packages

That is nothing unusual so far.

But for publishing this was not enough. I restored with dotnet restore, too to get some win-x64 packages, too:

    dotnet.exe restore a.sln --runtime 'win-x64' --source http://a:4080/nuget --packages .\packages
    nuget.exe restore a.sln -Source http://a:4080/nuget -PackagesDirectory .\packages

   msbuild.exe /p:Configuration=Release /p:DeployOnBuild=true /p:PublishProfile=a\Properties\PublishProfiles\a.pubxml

This worked, but we are not sure if it's correct/ a good way.

Can someone explain this? Or has a good article about nuget package restoring in a mixed project like this?

Resource error

$
0
0

Severity Code Description Project Path File Line Column Source Suppression State Tool
Warning  Could not resolve this reference. Could not locate the assembly "Stimulsoft.Report, Version=2017.2.2.0, Culture=neutral, PublicKeyToken=ebe6666cba19647a, processorArchitecture=MSIL". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors. anbar     Build  

Hi
I have encountered an error after installing version 2017.1.3
I also encounter the same problem when I add dll 2017.2.2
Help me please

Visual Studio 2008 - Dataset Name

$
0
0

I am using visual studio 2008 and trying to create report viewer with two datasets. When I am adding second dataset to the report using Report -> Datasources and trying to build, system is throwing below error.

"

Error1 The data set name is missing in the data region ‘DataSetName’.E:\Reports\EQPJobCard.rdlcBPMJobCards

"

Anyone can please help me to resolve this. I am new to dotnet.

Viewing all 2763 articles
Browse latest View live


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