All Questions
Tagged with class-library .net
197
questions
1
vote
1
answer
1k
views
Inno Setup 'Could not call proc' when using 64-bit class library
Inno Setup version 5.6.1(u).
Dev Studio 2015 64 bit class library.
.NET Framework 4.6.1
Uses the UnamanagedExports package.
Here's the script:
[Setup]
ArchitecturesInstallIn64BitMode=x64
...
0
votes
1
answer
382
views
How to have multiple config files in c# application?
I am developing C# application to write functional test cases using MStest. I have one app.config file. This holds information required in the application. I already added lot of information in the ...
0
votes
1
answer
286
views
If From & To date is same record not filtering LINQ
I am filtering records based on Dates using Where clause but it's not working. From and To date is same & one record comes within the same date but that getting eliminates.
todate {11/6/2018 12:...
0
votes
1
answer
484
views
Is there any equvalent builtin async method to Console.ReadKey()?
I was writing a simple console application in C#.
I could not find any equivalent async method for Console.ReadKey() in Console.In or anywhere else in System or System.Core Assembly.
Is there any ...
1
vote
1
answer
2k
views
How to run a .NET class library as a webservice
I have a web service built by colleagues as a class library that communicates with SharePoint 2013 on-premise. I now have to continue building this web service but there is no documentation on how to ...
1
vote
1
answer
9k
views
How can I use log4net in Class Library
I want to config a log4net in Class library Project and use it on mvc project for example.
The point is have a few projects (web api, mvc app, etc) with a reference to Common project (class library) ...
1
vote
1
answer
42
views
MStest throwing errors for Class library using multiple config files [duplicate]
I have created a class library MultipleConfigFiles, which has a method getConfigData. This method reads data from config files.
public class Class1
{
public string getConfigData()
...
0
votes
0
answers
58
views
In Visual Studio, how can I maintain one project that references different versions of the same class library?
Say I have a project that references version 1.0 of a class library. This class library is then updated and is now v. 2.0 (and it's not backwards compatible).
I'd like to be able to maintain the same ...
0
votes
2
answers
125
views
Connection String retrieved from one DB to be used in a Class Library to access a 2nd DB...Suggestions?
Environment:
.Net, SQL Server, WinForms Desktop
Control Database (db1)
Customer Databases (db2, db3, db4, etc.)
Background:
Each of our customers requires their own database. It's a contractual ...
1
vote
2
answers
2k
views
.NET Application - How to hide implementation of dependent libraries?
This can be possible duplicate of this question, but I don't want to go with solution suggested i.e. use of Web Service.
Here is the scenario:
1) I want to expose one class library to clients. Let's ...
2
votes
1
answer
660
views
How to create a "content only" project in a Visual Studio 2017 solution?
Is there an easier way to create content only projects in Visual Studio 2017 with out having to edit csproj files?
My objective is to have a class library project in my solution that does not ...
0
votes
1
answer
1k
views
Error when adding reference to class library in visual studio 2017
I have created a class library to a current solution in visual studio 2017 and I have added a reference to it in my main application.
But when I build I get this error
Severity Code Description ...
2
votes
1
answer
2k
views
Exceptions handling patterns for .NET library - handle, leave unattended or rethrow?
I'm writing a C# library, whose DLL will be later used by code of other application(s).
When there is a statement in the library that could throw an exception such as System.IO.IOException, should I ...
9
votes
4
answers
10k
views
Could not load file or assembly 'System.Net.Http, Version=4.1.1.1 .Net Standard
I am building a .Net standard library, which builds fine but on testing, I get this error
HResult=-2147024894 Message=Could not load file or assembly 'System.Net.Http, Version=4.1.1.1, Culture=...
0
votes
0
answers
118
views
Publish Action NOT including class libraries comments.xml files
I have a solution that has two projects, and a nuget package:
- WebApp.csproj
- CommonClassLibrary.csproj
- nugetClassLibrary.nuget
The WebApp has a project reference to CommonClassLibrary.csproj, ...