System.Net.Http.dll 2.4.0.0 NotFound
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 35/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Estancado
- Stack tecnológico
- csharp
- Área
- backend, build-system
Línea de trabajo
Reproduzca el fallo utilizando el proyecto WebAPI vacío, LibGit2Sharp 0.25.x y el proyecto MSTest añadido que se describe en el issue. Empiece examinando cómo se resuelve System.Net.Http.dll versión 4.2.0.0 desde BuildExtensions y compárelo con el comportamiento funcional de 0.24.1 o 0.42.1; el trabajo estará terminado cuando la prueba de ejemplo pueda ejecutarse y la clase Target referenciada pueda depurarse sin un error FileNotFound.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Reproduction steps
- Create a new blank WebAPI project. Note under references the System.Net.Http reference version is 4.0.0.0
- install any version of LibGet2Sharp (any version after 0.24.1) and note that the new System.Net.Http dll is now version 4.2.0.0
- add a new ms test project, and attempt to write a test against anything that requires use of a
RequestMessageResult. E.G: the following for example:
[TestMethod]
public async Task ResponseShouldRenderCorrectly()
{
var moq = new Mock<IGitHubRepository>();
var target = new Target(moq.Object);
var dto = new DTO
{
SomeField = "Nate Was Here"
};
var actualResponse = target.StatusCode(System.Net.HttpStatusCode.OK, dto);
Assert.IsNotNull(actualResponse);
Assert.IsInstanceOfType(actualResponse, typeof(ResponseMessageResult));
var strResponse = actualResponse as ResponseMessageResult;
Assert.AreEqual(System.Net.HttpStatusCode.OK, strResponse.Response.StatusCode);
var actual = await strResponse?.Response?.Content.ReadAsStringAsync();
var expected = "{\"SomeField\":\"Nate Was Here\"}";
Assert.AreEqual(expected, actual);
}
Expected behavior
I should be able to run the test code above to work, and i should be able to debug into the Target class used in the test.
Actual behavior
I receive a FileNotFound when looking for the System.Net.Http.dll with version 4.2.0.0 which it looks for in the BuildExtensions. That file is not reachable in my class library with my test, which is referencing the webapi project i created.
Version of LibGit2Sharp (release number or SHA1)
Version 0.42.1 works, but 0.25.0 and 0.25.2 are both causing this type of un-testable code.
Operating system(s) tested; .NET runtime tested
Windows 10, .net 4.6.1 run time.
- Lenguaje dominante
- C#
- Estrellas
- 3.5k
- Forks
- 925
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de libgit2/libgit2sharp
-
Dificultad 4/5 3-5 días Aptitud para principiantes 52/100
libgit2/libgit2sharp#2193 · 2 comentarios ·
-
Dificultad 4/5 3-5 días Aptitud para principiantes 38/100
libgit2/libgit2sharp#2192 · 1 comentario ·
-
Website is down Abierto
Dificultad 4/5 3-5 días Aptitud para principiantes 20/100
libgit2/libgit2sharp#2191 · 2 reacciones ·
-
Dificultad 3/5 1-2 días Aptitud para principiantes 68/100
libgit2/libgit2sharp#2189 · 1 reacción ·
-
Dificultad 3/5 1-2 días Aptitud para principiantes 35/100
libgit2/libgit2sharp#2187 · 2 comentarios ·
Todos los issues de libgit2/libgit2sharp
Issues similares
-
bug
Dificultad 1/5 Menos de una hora Aptitud para principiantes 75/100
sillsdev/languageforge-lexbox#2665 ·
-
[C#] Another Parens Edge-Case AbiertoC: Syntax
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
-
bug documentation frontend
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
azurenoops/spin_agent#975 ·
-
:watch: Not Triaged 11.0 fundamentals/subsvc
Dificultad 2/5 1-3 horas Aptitud para principiantes 92/100
dotnet/AspNetCore.Docs#37699 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
SubtitleEdit/subtitleedit#15108 · 1 comentario ·